Forum Moderators: phranque
[edited by: incrediBILL at 12:12 am (utc) on Mar 23, 2012]
[edit reason] fixed URL formatting [/edit]
The leading slash will not be present in the request.
Per-directory Rewrites
* The rewrite engine may be used in .htaccess files and in <Directory> sections, with some additional complexity.
...
* When using the rewrite engine in .htaccess files the per-directory prefix (which always is the same for a specific directory) is automatically removed for the RewriteRule pattern matching and automatically added after any relative (not starting with a slash or protocol name) substitution encounters the end of a rule set. See the RewriteBase directive for more information regarding what prefix will be added back to relative substitions.
...
* The removed prefix always ends with a slash, meaning the matching occurs against a string which never has a leading slash. Therefore, a Pattern with ^/ never matches in per-directory context.