What is this? From this page you can use the Social Web links to save Moving a project to another domain name to a social bookmarking site, or the E-mail form to send a link via e-mail.

Social Web

E-mail

E-mail It
March 16, 2009

Moving a project to another domain name

Posted in: Business,Development,Domain names,Programming,SEO, SEM

move Moving a project from one domain to another is something you should avoid. Unless it is really necessary – just don’t do it :)

But, maybe you sold a domain and want to transfer a project to another domain name. Then you have a lot of things to do.

I’ll show you here a few steps that you must do to make Google satisfied with this project transfer.

If possible, you should preserve URL syntax. So if you project had links like “olddomain.com/category/post.html” and you’re moving to newdomain.com, then you should go with “newdomain.com/category/post.html”.

To do this, you can use following code in .htaccess file root of your project (on a old domain):

  1.  
  2. Options +FollowSymLinks
  3. RewriteEngine on
  4. RewriteCond %{HTTP_HOST} !^newdomain\.com
  5. RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
  6.  

…or this code if you don’t have support for mod_rewrite installed.

  1.  
  2. RedirectMatch 301 ^(.*)$ http://www.newdomain.com
  3.  

Using the code from above, you’re redirecting all traffic (both visitors and robots) to a new domaini (newdomain.com) with 301 status (permanent redirect).
This will actually tell robots that you moved your website to another location. Also, visitor will be automatically transfered, so keep in mind that you should notify your visitors about this domain change so they should update their bookmarks as the old domain will no longer be available (for example).

Next thing you should do is to update your domain in webmaster tools (Google, Siteexplorer Yahoo, etc):

  • remove sitemaps for the old domain
  • add sitemaps to the new domain

This was the easy part. Next thing you should do is to contact all webmasters that have a backlink to your website and ask them to update it to a new address :)
This is important step because backlinks are very important for pagerank calculations etc.

 


Return to: Moving a project to another domain name