ISAPI_Rewrite - Coldfusion 9.0.1 and IIS 7.5
I need to resolve canonical URLs :
non-www version should be redirected (301) to www (all pages)
IP address should be redirected to www.mywebsite.com
www.mywebsite.com/index.cfm should be redirected to www.mywebsite.com
I would really appreciate your help on this one as the following code (.htaccess file) redirects only non-www version to www
I'm not sure what to change/add to include all of the above rules.
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
