How to handle a site's migration when the new domain is on a shared IP address.
 by Kristi Hagen

How to handle a site's migration when the new domain is on a shared IP address.

  • When migrating a site, I know to point the old domain to the new domain's IP address. But, what if the new domain's IP address is shared with other websites on a single server? Will the .htaccess take care of that?


There are several ways to go about this. The first choice is to see if you can "add" a domain to your account where your main website is hosted. If so, for each of your extra domains, add them to the main site and point them to the same file structure as the main site. Then you would update the DNS settings for the extra domains to what your host gives you to use. At this point, all the extra domains and the main site will all be sharing the same files, 100% duplicate content.

The .htaccess redirect is the key to making this work. It will say any request except for the primary domain redirects to the main domain. And it will look something like this,

RewriteEngine On
# If the hostname is NOT
RewriteCond %{HTTP_HOST} !^www\.maindomain\.com$
# 301 redirect to the same resource on
RewriteRule (.*)$1 [L,R=301]

If your main site is https, make sure to address that as well. Planet Ocean article end


Already a member? Sign in here

Read the rest of this article,
and get all this for only $1.

  • The Search Engine Strategies Updates for January 2021
  • SEN's Monthly Marketing Podcast for Strategies on the Go
  • Ultimate Guide to Avoiding Google Penalties
  • The Complete Site Audit Checklist
  • The Definitive Local Search Audit Checklist
  • 100's of Strategic SEO Articles and Q&As
  • The Internet Marketing Glossary
  • The Pro SEO's Local Search Directory List
  • 2019 Unfair Advantage SEO Beginner's Book
  • Pro's Ultimate WordPress Plugin Guide
  • The Vault: SEN's Internet Marketing Research Libraries
  • PLUS, as a Full SEN Basic Member, you'll be eligible for hundreds of dollars of discounts on SEO courses ranging from beginner to master on a variety of topics including organic search, local search, and social networking.

  • Your $1 Trial is good for 7 days at which time your card will be charged $29/mo unless you cancel before February 1st, 2021

 This form is encrypted for your security