<em>CondPattern</em>, back-references are internally created
which can be used with the strings <code>$N</code> and
<code>%N</code> (see below). These are available for creating
the strings <em>Substitution</em> and <em>TestString</em>.
Figure 1 shows to which locations the back-references are
transferred for expansion as well as illustrating the flow of the
RewriteRule, RewriteCond matching.</p>
the strings <em>Substitution</em> and <em>TestString</em> as
outlined in the following chapters. Figure 1 shows to which
locations the back-references are transferred for expansion as
well as illustrating the flow of the RewriteRule, RewriteCond
matching. In the next chapters, we will be exploring how to use
these back-references, so do not fret if it seems a bit alien
to you at first.
</p>
<pclass="figure">
<imgsrc="../images/rewrite_rule_flow.png"
<imgsrc="../images/rewrite_backreferences.png"
alt="Flow of RewriteRule and RewriteCond matching"/><br/>
<dfn>Figure 1:</dfn> The back-reference flow through a rule.
<dfn>Figure 1:</dfn> The back-reference flow through a rule.<br/>
In this example, a request for <code>/test/1234</code> would be transformed into <code>/admin.foo?page=test&id=1234&host=admin.example.com</code>.
</p>
</section>
@@ -168,10 +173,15 @@ of three arguments separated by spaces. The arguments are</p>
<li><var>[flags]</var>: options affecting the rewritten request.</li>
</ol>
<p>The <var>Pattern</var> is always a <ahref="#regex">regular
expression</a> matched against the URL-Path of the incoming request
(the part after the hostname but before any question mark indicating
the beginning of a query string).</p>
<p>The <var>Pattern</var> is a <ahref="#regex">regular expression</a>.
It is initially (for the first rewrite rule or until a substitution occurs)
matched against the URL-path of the incoming request (the part after the
hostname but before any question mark indicating the beginning of a query
string) or, in per-directory context, against the request's path relative
to the directory for which the rule is defined. Once a substitution has
occured, the rules that follow are matched against the substituted