So you’ve purchased multiple top level domains (TLDs) to ensure nobody else gets hold of them. Well done 🙂

You first need to change the DNS on each domain name to be that of your hosting provider.  Next park each domain name on your hosting account (easy to do using cPanel hosting) so that they all go to the same website you have spent months building. You should have already decided which domain name is going to be your primary domain, a .com domain for example, and setup your website or WordPress installation on this domain.

But wait! If you park your domains on your primary domain Google will penalize you for duplicate content because now you have several domain names but with identical content. But don’t fear we’ll tell you how to fix this.

How to correctly park multiple domain names on the same hosting account

After you have parked all your domains on your primary domain name you’ll want to setup 301 redirects for them.

This is so that when a search engine or when somebody comes to your parked domain example, www.myparkeddomain.co.uk, and the web server will redirect them to your primary domain  – example: www.myprimarydomain.com

So now Google or any other search engine won’t see the parked domain name as having the same and duplicate content to your primary domain.

The best method is to create a .htaccess file and put the redirect rules into it. Your website may already have a .htaccess file. Check in your public_html or httpdocs folder, depending on what web hosting you are using. Backup this file somewhere and don’t edit the backup copy. If something goes wrong at least you will have the original copy which you can restore to your hosting account. If your website does not have a .htaccess file then just open Notepad or TextEdit. When saving the below code in Notepad make sure you save the filename .htaccess as file type “All Files”. This way it won’t get the .txt file extension.

Here is an example of the code you will put into your  .htaccess file to redirect a co.uk domain and a .net domain name to your .com domain:

If you have an existing .htaccess file try placing this code at the bottom of it, saving it and re-uploading it to your web hosting. Replace myprimarydomain with your primary domain name and replace the myparked.co.uk and .net domains with whatever parked TLDs you have.

RewriteEngine On

#redirect first parked domain to primary domain

RewriteCond %{HTTP_HOST} ^myparkeddomain.co.uk
RewriteRule (.*) http://www.myprimarydomain.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} www.myparkeddomain.co.uk
RewriteRule (.*) http://www.myprimarydomain.com/$1 [R=301,L]

#redirect second parked domain to primary domain

RewriteCond %{HTTP_HOST} ^myparkeddomain.net
RewriteRule (.*) http://www.myprimarydomain.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} www.myparkeddomain.net
RewriteRule (.*) http://www.myprimarydomain.com/$1 [R=301,L]

Test your 301 redirects

After you have saved and uploaded the .htaccess file back to your website hosting account, type your parked domain names into a browser address bar and press enter. They should redirect to your primary. If they don’t then something is wrong. You either don’t have htaccess rewrite access with your hosting provider, or your hosting provider doesn’t support it or it’s Windows hosting!