Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Wiki Markup
The P flag causes the resulting URL to be requested by proxy, using mod_proxy. This allows for complex proxying of content to a variety of back-end servers. You do need to have mod_proxy installed in order to use the \[P\] flag.

No Format
RewriteEngine On
RewriteRule ^(/(images|css).*)$ 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.)

Wiki Markup
The more verbose \[Proxy\] syntax is also permitted.

_ Back to RewriteFlags_