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.