|
||||||||||
|
NEW SUPPORT LINE (South Africa only): SMS your support request (FIRST WORD MUST BE SUPPORT) to 072 532 1530
Domain parking with 301 redirectPosted in SEO on 2012-07-15
The Correct Way to Park Multiple Domains and Avoid Duplicate Content Problems
The problem is that now you have two separate domain names which look like two separate web sites, but with identical content. This is a duplicate content nightmare! But there is an easy way around. 301 Redirect to avoid duplicate content issues
In order not to be penalised with duplicate content, you should do a 301 redirect from the new domain name to the existing one. A 301 redirect refers to a specific reply code in the HTTP headers which the web server provides whenever a page is requested. A 301 HTTP header tells the requesting device that this page has permanently moved and then redirects to the new domain. So, what this means from the search engines point of view is that it will come to your parked domain, eg, www.php-web-host.co.uk, and the web server will say, "301, that sites been permanently moved to www.php-web-host.com" and then it will transfer the requesting device to the new domain automatically. How to do a 301 redirect?
The best method of doing a 301 redirect is to put the redirect directive in your sites .htaccess file. A .htaccess file is a file which resides in the root directory of your web site and has some preprocessor instructions to the webserver, ie, these commands are processed BEFORE the web server send the page to the device requesting it. In other words, when a user to your site (including the search engines) type in www.php-web-host.co.uk, before the page is returned to that user, the .htacess file is checked. When the rule is encountered for the 301 redirect, the webserver does the redirect and sends the new page and notifies the requestor that the page has moved. RewriteEngine On RewriteCond %{HTTP_HOST} ^php-web-host.co.uk RewriteRule (.*) http://www.php-web-host.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} www.php-web-host.co.uk RewriteRule (.*) http://www.php-web-host.com/$1 [R=301,L]
The first line, RewriteEngine On initialises the functionality on the server (so to speak). CommentsName:PHP-Web-Host.com That's a great question. I've compiled a short blog post to show you how you can test your 301 permanent redirect to make sure its working properly. Testing your 301 permanent redirect Add your comment
|
|||||||||
Name:Karen
Comment:
Thanks for this great info. It was clearly explained and really helpful. I just wonder how I can test this. The additional domains were already parked so they did redirect. They are still redirecting ok but how can I test that the code is doing its job (apart from seeing if our rankings go down or not!) Thanks