: I use the following code in the htaccess file to manage my wordpresses with multiple domains all pointing to the same site (though this isn't wordpress specific). RewriteEngine On RewriteCond
I use the following code in the htaccess file to manage my wordpresses with multiple domains all pointing to the same site (though this isn't wordpress specific).
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.yourdomain.com$ [NC]
RewriteRule ^(.*)$ www.yourdomain.com/ [R=301,L]
Basically this redirects any domain that isn't yourdomain.com to yourdomain.com.
This way you avoid any crossdomain violations (with embedded fonts for example), all your sites are accessible from all domains but you only have a single root domain so far as users, bookmarks and search engines are concerned.
You may also want to read this google webmaster blog on canonical urls.
More posts by @Radia820
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.