<p><a id="patterns" name="patterns"><em>Pattern</em></a> is
a perl compatible <a id="regexp" name="regexp">regular
expression</a>. On the first RewriteRule, it is matched against
- the (%-decoded) <a href="./directive-dict.html#Syntax">URL-path</a> (or
- <a href="./directive-dict.html#Syntax">file-path</a>, depending
- on the context) of the request. Subsequent patterns are matched against the
- output of the last matching RewriteRule.</p>
+ the (%-decoded) <a href="directive-dict.html#Syntax">URL-path</a>
+ of the request, or, in per-directory context (see below), the URL
+ path relative to that per-directory context. Subsequent patterns
+ are matched against the output of the last matching RewriteRule.</p>
+
<note><title><a id="what_is_matched" name="what_is_matched">What is matched?</a></title>
<p>In <directive module="core">VirtualHost</directive> context,