Example IsapiRewrite4.ini File for IsapiRewrite4

without comments

 

– Redirect attacks

RewriteCond %{REMOTE_ADDR} 10.10.1.0
RewriteRule ^/(.*)$ /$1 [F]

– Redirect from http://foo.com to http://www.foo.com

RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]

Written by grantmcinnes

May 28th, 2009 at 3:20 pm

Posted in Technology

Leave a Reply

You must be logged in to post a comment.