<p>To simply map a URL to another server, we use the [P] flag, as
follows:</p>
-<example><pre>
-RewriteEngine on
-RewriteBase /products/
-RewriteRule ^<strong>widget/</strong>(.*)$ <strong>http://product.example.com/widget/</strong>$1 [<strong>P</strong>]
+<example>
+RewriteEngine on<br />
+RewriteBase /products/<br />
+RewriteRule ^<strong>widget/</strong>(.*)$ <strong>http://product.example.com/widget/</strong>$1 [<strong>P</strong>]<br />
ProxyPassReverse /products/widget/ http://product.example.com/widget/
-</pre></example>
+</example>
<p>In the second example, we proxy the request only if we can't find
the resource locally. This can be very useful when you're migrating
from one server to another, and you're not sure if all the content
has been migrated yet.</p>
-<example><pre>
-RewriteCond %{REQUEST_FILENAME} <strong>!-f</strong>
-RewriteCond %{REQUEST_FILENAME} <strong>!-d</strong>
-RewriteRule ^/(.*) http://<strong>old</strong>.example.com$1 [<strong>P</strong>]
+<example>
+RewriteCond %{REQUEST_FILENAME} <strong>!-f</strong><br />
+RewriteCond %{REQUEST_FILENAME} <strong>!-d</strong><br />
+RewriteRule ^/(.*) http://<strong>old</strong>.example.com$1 [<strong>P</strong>]<br />
ProxyPassReverse / http://old.example.com/
-</pre></example>
+</example>
</dd>
<dt>Discussion:</dt>
RedirectMatch ^/docs/(.*) http://new.example.com/docs/$1
</example>
-<example><title>With Redirect</title><pre>
+<example><title>With Redirect</title>
Redirect /docs/ http://new.example.com/docs/
</example>
</dd>
the following:</p>
<example><title>Product to ID map</title>
- <pre>
-##
-## productmap.txt - Product to ID map file
-##
-
-television 993
-stereo 198
-fishingrod 043
-basketball 418
+##<br />
+## productmap.txt - Product to ID map file<br />
+##<br />
+<br />
+television 993<br />
+stereo 198<br />
+fishingrod 043<br />
+basketball 418<br />
telephone 328
-</pre>
</example>
<p>Thus, when <code>http://example.com/product/television</code> is
else is sent to one of the 'dynamic' pool.</p>
<example><title>Rewrite map file</title>
- <pre>
-##
-## map.txt -- rewriting map
-##
-
-static www1|www2|www3|www4
+##<br />
+## map.txt -- rewriting map<br />
+##<br />
+<br />
+static www1|www2|www3|www4<br />
dynamic www5|www6
-</pre>
</example>
<example><title>Configuration directives</title>