Force www. on multi domain site and retain http or https [closed]
- by John Isaacks
I am using CakePHP which already contains an .htaccess file that looks like:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
I want to force www. (unless it is a subdomain) to avoid duplicate content penalties.
It needs to retain http or…