From: Eric Covener
In Directory and htaccess context,
+
In per-directory context (Directory and .htaccess),
the Pattern is matched against only a partial path, for example a request
of "/app1/index.html" may result in comparison against "app1/index.html"
or "index.html" depending on where the RewriteRule is
defined.
In this context, only the trailing portion of the currently mapped - filesystem is compared against. The directory path where the rule is defined - is stripped before comparison (up to and including a trailing slash). +
The directory path where the rule is defined is stripped from the currently mapped + filesystem path before comparison (up to and including a trailing slash). The net result of this per-directory prefix stripping is that rules in - this context only match against the portion of the currently mapped path - "below" where they are defined.
+ this context only match against the portion of the currently mapped filesystem path + "below" where the rule is defined.Directives such as DocumentRoot and Alias, or even the
result of previous RewriteRule substitutions, determine