Move your Website to a new Domain in 5 steps

by Wolf on October 29, 2009

This post is an update to an earlier one on the same subject. After having moved a few wordpress blogs I think this one is easier to follow.

The following post describes in detail how to move your WordPress blog to a new domain in 5 steps without losing any content or have ing to retype or copy and paste any content.

Please note that all instructions here are assuming that you have cpanel access to your server and that its a fresh installation (read all files on your server will be overwritten)

  1. Install Wordpress on the new domain
    cpanel > fantastico > Wordpress blog (I’m assuming install into your root folder)
  2. Copy only these folders from your old domain to your new domain: wp-admin, wp-content, wp-includes plus any folders you might have created your self such as reports, images etc. by creating a zip file or using FTP. To create a zip file cpanel > file manager > tick the folders > top menu Compress
  3. Copy old database and paste to the new database
    old database: cpanel > phpmyadmin > chose your database (_wpdp1) > Export > see pic below (Click above to see larger version)

    MySQL Export Setttings

    MySQL Export Setttings

    Copy the resulting SQL code to the clip board and then:
    cpanel > phpmyadmin > chose your database (_wpdp1) > click SQL tab and paste (you should now see the SQL code from the previous step) > GO

  4. Update the database with you new domain name.
    Goto new database cpanel > phpmyadmin > chose your database (_wpdp1) > SQL tab
    issue these actions one at a time (copy and paste into the SQL window and change domain names then click GO), please note that some systems will want single ‘ and others double ” around the domain name, if one fails try the other:
    UPDATE wp_options SET option_value = ‘http://www.new-domain.com’ WHERE option_name = ‘home’ OR option_name = ’siteurl’;
    UPDATE wp_posts SET guid = replace(guid, “http://www.old-domain.com”,”http://www.new-domain.com”);
    UPDATE wp_posts SET post_content = replace(post_content, “http://www.old-domain.com”, “http://www.new-domain.com”);
    Plesase note that the URL in the above 3 commands needs to be with or without www depending on how you use you domain name, if uncertain then run the with and without the www.
    UPDATE wp_options SET option_value = ‘/your-absolute path/wp-content/uploads”) WHERE option_name = ‘upload_path’
    Example for your path: /home/handsonim/public_html. After you have completed this I would recommend to browse the table wp_options (using phpmyadmin) and just check if there are any other values that might need changing.
  5. Update forwarders
    First test that your new site is working then forward your old domain name to your new domain to ensure people still find your site cpanel > Redirects (after the >> enter http://yr-new-domain.com) and choose as a permanent forward since this will ensure that browsers update their bookmarks also.

Also make sure your new site will be indexed by Google.

Do you need more help like this? As a member you can request procedures like this that apply to your problem. Check out our membership page now.

  • Share/Bookmark

Related posts:

  1. How to move a WordPress blog to a new domain in 5 steps Please see my newer post for this here please Please...
  2. Content Ready Website released This is a quick post to let you know that...
  3. Why use Wordpress instead of Joomla for your Internet marketing website? Technically speaking Joomla is a website Content Management System (CMS)...
  4. The start: Your Domain Name First things first. If you haven’t got a domain name...
  5. Wordpress Permalink 404 errors I have installed the base version for my CRW on...

Related posts brought to you by Yet Another Related Posts Plugin.

{ 1 comment… read it below or add one }

Wolf October 29, 2009 at 9:22 am

After moving a website to a new domain I received a 404 error when clicking any links (eg a post title or a tag in the tag cloud). To resolve this I saved the custom permalink again (admin > permalinks > custom structure: enter: /%category%/%postname%/

Leave a Comment

Anti-Spam Protection by WP-SpamFree

Previous post: Pretty Links Plugin

Next post: Image Sizes in Thesis Theme