Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by EricCovener: http://wiki.apache.org/httpd/RewriteContext ------------------------------------------------------------------------------ == Base URI == - The most visible change to look out for here is that in !VirtualHost (per-server) context the request URI as seen by !RewriteRule will start with a / (slash). Conversely in .htaccess or Directory (per-directory) the initial slash is stripped. + The most visible change to look out for here is that in !VirtualHost (per-server) context the request URI as seen by !RewriteRule will start with a / (slash). Conversely in .htaccess or Directory (per-directory) the RewriteBase, plus a trailing slash, are stripped before the comparison to the pattern - As an example, consider this basic rule to map the request for 'foo' to 'bar'. + As an example, consider this basic rule to map the request for 'bar' to 'baz' for a request of /foo/bar {{{ - # in .htaccess + # in /var/www/foo/.htaccess + RewriteBase /foo RewriteEngine On - RewriteRule ^foo bar + RewriteRule ^bar baz }}} {{{ # in VirtualHost RewriteEngine On - RewriteRule ^/foo /bar + RewriteRule ^/foo/bar$ %{DOCUMENT_ROOT}/foo/baz }}} == Environment Variables ==
