Forum Moderators: phranque

Message Too Old, No Replies

canonical url

         

shanthinig

7:25 am on Jan 11, 2011 (gmt 0)

10+ Year Member



I want to direct all non-www main and sub domains to www main and sub domains with iis server 6

I used the below rule in httpd.ini but it is not working.

[ISAPI_Rewrite]

# check to make sure it's not a www or subdomain request
rewritecond %{http_host} ^[a-zA-Z]+\.com
# if that's the case, rewrite to www.http_host
RewriteRule (.*) [%{http_host}...] [R=301,L] ]

Can any one please advice. Thanks in advance.

jdMorgan

4:18 pm on Jan 14, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are some very important differences between mod_rewrite on Apache and ISAPI Rewrite on IIS. I strongly suggest that you check the documentation for your version of ISAPI Rewrite, and consult ISAPI-Rewrite-specific forums for advice.

Jim