How to use multiple domains
for one web site – 301 Redirect

By Sergey Skudaev

Host Unlimited Domains on 1 Account

++++++++

On this page I will show you different methods for 301- Redirect. The 301 redirect allows redirecting visitors from one URL to the other URL. Why we would need it? We may have few different reasons for redirection. One of them – using few domain names for the same web site. It is possible to use few domains for one web site. However, It is important not to create a condition, when the same page can be accessed by more that one URL. If the same site can be accessed by two or more URL, then Google will consider the site accessible through one domain as a duplicate of the site accessible through the other domain. To avoid such situation you can use 301 Redirect.

Let me explain you how I solved this problem for my web site. First, I registered few domains for the same site: new-trip.com, best-your-trip.com, trip-dreams.com and wish-trip.com. My primary domain is best-your-trip.com. In my host control panel I found Addon Domains icon.

Host control panel - Addon domain icon

I clicked it, and added wish-trip.com domain as Addon domains.

Create Addon domain

After that, I clicked Redirects icon and redirected trip-dreams.com Addon domain to the primary domain. Then I added the trip-dreams.com domain as Addon domain and in the same way, I redirected it to the primary domain.

301 Redirect Addon domains

Now both Addon domains are redirected to the primary domain.

My new-trip.com domain was added as Addon domain to my different host with the primary domain configure-all.com.

To redirect new-trip.com to the best-your-trip.com domain, I used the following script in .htaccess file, which is located in my root directory for the new-trip.com domain.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^new-trip.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.new-trip.com$
RewriteRule ^(.*)$ "http\:\/\/www\.best\-your\-trip\.com$1" [R=301,L]

Now all three my Addon domains: trip-dreams.com, wish-trip.com and new-trip.com are redirected to the primary domain: best-your-trip.com.

I had one more problem. I had a web page with photos of the Honeymoon Island Park on a web site with the primary domain name “serge-world.com”. I moved this web page with the Honeymoon photos to the web site with best-your-trip.com domain. But in google search index my old URL to the honeymoon.php page still exists.

Now I had to redirect the http://www.serge-world.com/honeymoon.php page to the http://www.best-your-trip.com/honeymoon.php.

In the .htaccess file, which is located in my root directory for the serge-world.com, I typed the following script:

Redirect 301 /honeymoon.php http://www.best-your-trip.com/honeymoon.php

Now, if a user finds an old URL in Google search, he will be redirected to the new page location.

Besides, I redirected all my domains without www to domains with www, using the following script in the .htaccess file.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^configure-all.com$
RewriteRule ^/?$ "http\:\/\/www\.configure\-all\.com" [R=301,L]

That way user can access my page on my www.configure-all.com site only through the one URL with www.

Web hosting links:

http://www.hostmonster.com Free Domain, Free Setup, Host Unlimited Domains $6.95 I am using it for this site.

http://www.fatcow.com/fatcow/index.bml
FatCow Web Hosting. Free Trial , Free Setup, Free Support – All risk free! I am using it for one my new site.

http://www.justhost.com Professional Hosting from Just Host $4.95/month - Unlimited disk space and transfers and host unlimited domains I am using it for my another web site www.best-your-trip.com

http://www.Hostgator.com
Looking for Web Hosting With Quality Support? 24/7 Support Via Phone, Live Chat, and Email!

http://www.bluehost.com
Reliable, Affordable Business Hosting from Bluehost.com.

http://www.ImHosted.com
ImHosted.com - MEGA Web Hosting Deal. Click for details!

http://www.ixwebhosting.com
IXWebHosting.Com: $3.95/mo - Superior Service with Excellent 24/7 Toll Free Support, Live Chat, and Email. Linux AND Windows packages!!!

http://www.iPower.com
iPower - The Leader in Web Hosting

http://www.ipowerweb.com
Web Hosting - $7.95 - Free Setup - Rebates


Did you find information useful? Send to your friend a link to this page

Please rate the tutorial

1 2 3 4 5 6 7 8 9 10



Comments
 
Register to add comments ( 1000 char ) for 301_redirect.php.
Are you human? Please select two the same numbers