I have a configuration like this
<VirtualHost *:80> ProxyPreserveHost Off ProxyRequests Off ServerName mooo.com ServerAlias www.mooo.com ProxyPass / http://localhost:8000/ ProxyPassReverse / http://localhost:8000/ RewriteEngine on RewriteRule "^/foo\.html$" "/admin/" [PT] </VirtualHost>
this is working fine . now i want to rewrite foo.html to some other external domain . say for example when user open mooo.com/foo.html i need to server example.com i tried
RewriteRule "^/foo\.html$" "http://example.com" [PT]
but not working how can i solve this issue ?