</section>
+<section id="examples">
+
+ <title>Example expressions</title>
+ <p>The following examples show how expressions might be used to evaluate requests:</p>
+ <!-- This section should probably be extended with more, useful examples -->
+ <example>
+ # Compare the host name to example.com and redirect to www.example.com if it matches<br />
+ <If "%{HTTP_HOST} == 'example.com'"><br />
+ <indent>
+ Redirect permanent / http://www.example.com<br />
+ </indent>
+ </If><br /><br />
+ # Force text/plain if requesting a file with the query string contains 'forcetext'<br />
+ <If "%{QUERY_STRING} =~ /forcetext/"><br />
+ <indent>
+ ForceType text/plain<br />
+ </indent>
+ </If><br /><br />
+ # Only allow access to this content during business hours<br />
+ <Directory "/foo/bar/business"><br />
+ <indent>
+ Require expr %{TIME_HOUR} >= 9 && %{TIME_HOUR} <= 17 <br />
+ </indent>
+ </Directory>
+ </example>
+</section>
+
<section id="other">
<title>Other</title>