RewriteEngine On
RewriteCond %{Request_URI} !^/images
RewriteCond %{Request_URI} !^/css
RewriteRule ^(.*)$ http://other.server.com:90$1 [P]
ProxyPassReverse / http://other.server.com:90/
The above ruleset causes all URLs, except those for the /images and /css directories, to be proxied through to another server, running on port 90. The ProxyPassReverse directive is to ensure that redirects returning from that server are correctly passed back to the client. (See
the ProxyPassReverse documentation for more details.)
The more verbose [Proxy] syntax is also permitted.
Back to Flags