Example IsapiRewrite4.ini File for IsapiRewrite4
– 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]
Leave a Reply
You must be logged in to post a comment.
