Can you advise me about moving a WordPress site and redirecting the URL?

Sushma Gupta April 15, 2013
Pinterest Stumbleupon Whatsapp

I have a site hosted with WordPress. I want to do two things:

  1. Move the site from one server to another server .
  2. Redirect my old domain name to my new domain name.

For the first part I plan to follow the MakeUseOf article about moving a WordPress blog How To Move Your Wordpress Blog To Another Host How To Move Your Wordpress Blog To Another Host Read More .

So I intend to start by installing WordPress on the new server, then exporting the .sql file from phpMyAdmin, and import to new server then copy wp-content and its content to new server.

For the redirect i plan to use Redirect 301 -following commands in .ht access:

 # Begin old site rewrites
 RewriteEngine on
 RewriteBase /
 RewriteRule ^oldlink /newlinks/ [R=301,NC,L]
# End old site rewrites

My question is: is this correct way to do so? Or is there a better way to do this?

Ads by Google

  1. justinpot
    April 16, 2013 at 1:39 pm

    This plugin makes migrations even easier. Used it for something similar quite recently:

    http://wordpress.org/extend/plugins/wordpress-backup-to-dropbox/

  2. Athul Jayaram
    April 16, 2013 at 5:00 am

    Don't forget to edit your wp-config.php in your new host, the steps mentioned in makeuseof are correct

    Take back up of Wp-content and Database on old server

    Edit Hosts file on Local computer

    Install WordPress on new Hosting server

    Upload Wp-content folder

    Create Database, user and password

    Import Database

    Update Wp-config file on new server

    Verify everything

    Update Nameserver to point to new hosting

    For redirection, you may use http://wordpress.org/extend/plugins/redirection/ it's so simple and follows google guidelines for redirect

    let me know if you have any problem with the whole process :)

    • Sushma Gupta
      April 19, 2013 at 12:40 pm

      Does it impact if instead of restoring 1) wp-content and 2) phpmyadmin in this sequence, restore first phpmyadmin database and then wp-content.

  3. Chris Marcoe
    April 15, 2013 at 11:45 pm

    Try this one:

    http://codegarage.com/blog/2011/03/how-to-301-redirect-your-wordpress-blog-to-a-new-url/

    Not sure iffin this is what you are after, but good luck with it.

    • Sushma Gupta
      April 19, 2013 at 12:39 pm

      Does it impact if instead of restoring 1) wp-content and 2) phpmyadmin in this sequence, restore first phpmyadmin database and then wp-content.