Moving WordPress to new Host and Domain

[toc]

Changing Settings

  • Go to Administration Screen of your wordpress
  • Select Settings and click “General”
  • Change the “WordPress Address(URL)” and “Site Address(URL)” to your new domain

Downloading Files

  • Download all files/folders from your wordpress Directory using any method like
  1. If you have FTP Access to your server then download files using ftp clients like FileZilla
  2. Using cPanel’s FileManager or other FileManger option provided with your Host. Create an archive and download whole directory containing wordpress files

Database Backup

Editing wp-config.php

  • Open wp-config.php in your downloaded wordpress directory with text editor like Notepad++
  • Change the following to new settings of your web-host
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */

define('DB_USER', 'root');

/** MySQL database password */

define('DB_PASSWORD', 'root');

/** MySQL hostname */

define('DB_HOST', 'localhost');
  • Save the file

Uploading Files

  • Upload the files to your web-host using FileZilla or
  • Create an Archive and upload using FileManager provided by web-host
  • Extract the files (You can delete the archive after extracting)

Fixing Broken Links

  • After moving your wordpress blog/site you will notice that images,other media or attachments are broken and point to your old URLs
  • Easiest way to fix broken links after moving wordpress is by usingĀ Velvet Blues Update URLsPlugin. You just need to enter Old url,New Url and it will automatically fix all the broken links.
  • Another Method to do the same is using Search and Replace Plugin
  • If nothing works you can open the .sql file downloaded after backup and open it with text editor like Notepad++. Now Find and Replace all theĀ  occurrences of Old Url with your new Url .

Leave a Reply

Your email address will not be published. Required fields are marked *