<p>This document supplements the <module>mod_rewrite</module>
<a href="../mod/mod_rewrite.html">reference documentation</a>. It provides
-a few advanced techniques using mod_rewrite.</p>
+a few advanced techniques using <module>mod_rewrite</module>.</p>
<!--
I question whether anything remailing in this document qualifies as
<dd>
<p>We wish to randomly distribute load across several servers
- using mod_rewrite.</p>
+ using <module>mod_rewrite</module>.</p>
</dd>
<dt>Solution:</dt>
<dd>
<p>Apache comes with a load-balancing module -
<module>mod_proxy_balancer</module> - which is far more flexible and
-featureful than anything you can cobble together using mod_rewrite.</p>
+featureful than anything you can cobble together using <module>mod_rewrite</module>.</p>
</dd>
</dl>
<dd>
<p>By default, redirecting to an HTML anchor doesn't work,
- because mod_rewrite escapes the <code>#</code> character,
+ because <module>mod_rewrite</module> escapes the <code>#</code> character,
turning it into <code>%23</code>. This, in turn, breaks the
redirection.</p>
</dd>
<dt>Discussion:</dt>
<dd>This technique will of course also work with other
- special characters that mod_rewrite, by default, URL-encodes.</dd>
+ special characters that <module>mod_rewrite</module>, by default, URL-encodes.</dd>
</dl>
</section>
<dt>Description:</dt>
<dd>
- <p>We wish to use mod_rewrite to serve different content based on
+ <p>We wish to use <module>mod_rewrite</module> to serve different content based on
the time of day.</p>
</dd>
<p>This document supplements the <module>mod_rewrite</module>
<a href="../mod/mod_rewrite.html">reference documentation</a>. It describes
-the way that the rules change when you use mod_rewrite in .htaccess files,
+the way that the rules change when you use <module>mod_rewrite</module> in .htaccess files,
and how to deal with these changes.</p>
</summary>
<dd>
<p>
- mod_rewrite provides the [P] flag, which allows URLs to be passed,
- via mod_proxy, to another server. Two examples are given here. In
+ <module>mod_rewrite</module> provides the [P] flag, which allows URLs to be passed,
+ via <module>mod_proxy</module>, to another server. Two examples are given here. In
one example, a URL is passed directly to another server, and served
as though it were a local URL. In the other example, we proxy
missing content to a back-end server.</p>
<p>Consider using either <directive
module="mod_proxy">ProxyPass</directive> or <directive
module="mod_proxy">ProxyPassMatch</directive> whenever possible in
- preference to mod_rewrite.</p>
+ preference to <module>mod_rewrite</module>.</p>
</dd>
</dl>