domains

The snippet below is excellent if you have several domains pointing to the same webspace and only want to use one domain as your primary domain. RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !newdomain.com$ [NC]RewriteRule ^(.*)$ http://www.newdomain.com/$1 [L,R=301] Explanation of the code Make…
Published in Tips & Tricks