Hi,
I need to add a re-write to enable non-www web pages to only show as www pages... on the same website in order to avoide duplicate content:
My hosting prooviders have advised
"You will have to use ISAPI_rewrite to redirect the website from..."
I believe that the code is as follows in a txt file with the file extension .htaccess
but it doesn't work ...
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
Do I also need to add some 'security' measures to this file? (assuming I can get it to work)
Thanks for any advice...
Gemini23