Mobile app version of vmapp.org
Login or Join
Fox8124981

: Force www. on multi domain site and retain http or https I am using CakePHP which already contains an .htaccess file that looks like: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule

@Fox8124981

Posted in: #Htaccess #ModRewrite #MultipleDomains

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/ [L]
</IfModule>


I want to force (unless it is a subdomain) to avoid duplicate content penalties.

It needs to retain http or https

Also

This application will have multiple domains pointing to it. So the code needs to be able to work with any domain.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Fox8124981

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme