Mobile app version of vmapp.org
Login or Join
Radia820

: 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

@Radia820

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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme