</section>
-<section id="setenv"><title>Environment Variable Testing</title>
-
-<p><module>mod_rewrite</module> is frequently used to take a particular
-action based on the presence or absense of a particular environment
-variable or request header. This can be done more efficiently using the
-<directive module="core" type="section">If</directive>.</p>
-
-<p>Consider, for example, the common scenario where
-<directive>RewriteRule</directive> is used to enforce a canonical
-hostname, such as <code>www.example.com</code> instead of
-<code>example.com</code>. This can be done using the <directive
-module="core" type="section">If</directive> direct, as shown here:</p>
-
-<example>
-<If "$req{Host} = 'example.com'"><br />
-RedirectMatch (.*) http://www.example.com$1
-</If>
-</example>
-
-<p>This technique can be used to take actions based on any request
-header, response header, or environment variable, replacing
-<module>mod_rewrite</module> in many common scenarios.</p>
-
-<p>See especially the <a href="../expr.html">expression evaluation
-documentation</a> for a overview of what types of expressions you can
-use in <If> sections, and in certain other directives.</p>
-
-</section>
-
</manualpage>