:<br />
SetEnvIf OID("2.16.840.1.113730.1.13") "(.*)" NetscapeComment=$1<br />
:<br />
- SetEnvIf ^TS* ^[a-z].* HAVE_TS<br />
+ SetEnvIf ^TS ^[a-z] HAVE_TS<br />
</example>
<p>The first three will set the environment variable
<br />
RewriteCond %{HTTP_REFERER} !=""<br />
RewriteCond ${deflector:%{HTTP_REFERER}|NOT-FOUND} !=NOT-FOUND<br />
-RewriteRule ^.* ${deflector:%{HTTP_REFERER}} [R,L]
+RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L]
</example>
<p>The map file lists redirection targets for each referer, or, if
<dt>A full filesystem path to a resource</dt>
<dd>
<example>
-RewriteRule ^/games.* /usr/local/games/web
+RewriteRule ^/games /usr/local/games/web
</example>
<p>This maps a request to an arbitrary location on your filesystem, much
like the <directive module="mod_alias">Alias</directive> directive.</p>
<example>
RewriteCond %{QUERY_STRING} hack<br />
RewriteCond %{HTTP_COOKIE} !go<br />
-RewriteRule .* - [F]
+RewriteRule . - [F]
</example>
<p>Notice that the exclamation mark specifies a negative match, so the rule is only applied if the cookie does not contain "go".</p>
<example><title>Redirect a URI to an all-lowercase version of itself</title>
RewriteMap lc int:tolower<br />
- RewriteRule (.*[A-Z]+.*) ${lc:$1} [R]
+ RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
</example>
<note>
</section>
<section id="msie"><title>Why do I get I/O errors when connecting via
-HTTPS to an Apache+mod_ssl server with Microsoft Internet Explorer (MSIE)?</title>
+HTTPS to an Apache+mod_ssl server with older versions of Microsoft Internet
+Explorer (MSIE)?</title>
<p>The first reason is that the SSL implementation in some MSIE versions has
some subtle bugs related to the HTTP keep-alive facility and the SSL close
notify alerts on socket connection close. Additionally the interaction
This can be done by using the following directive in your SSL-aware
virtual host section:</p>
<example>
- SetEnvIf User-Agent ".*MSIE.*" \<br />
+ SetEnvIf User-Agent "MSIE [2-5]" \<br />
nokeepalive ssl-unclean-shutdown \<br />
downgrade-1.0 force-response-1.0
</example>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^192\.168\.1\.[0-9]+$
RewriteCond %{HTTPS} !=on
-RewriteRule .* - [F]
+RewriteRule . - [F]
# Allow Network Access and/or Basic Auth
Satisfy any
# primary vhost<br />
DocumentRoot /www/subdomain<br />
RewriteEngine On<br />
- RewriteRule ^/.* /www/subdomain/index.html<br />
+ RewriteRule . /www/subdomain/index.html<br />
# ...<br />
</indent>
</VirtualHost><br />