Step-by-Step Guide

Universal WordPress Migration Guide: Moving Sites Safely and Efficiently

Step 1: Backup Your Website

Before making any changes, it’s crucial to create a backup of your entire WordPress website. This ensures that you have a restore point in case anything goes wrong during the migration process.

Step 2: Update WordPress Settings

  1. Update Site Address:
    • Navigate to the WordPress dashboard.
    • Go to Settings > General.
    • Update both the WordPress Address (URL) and Site Address (URL) to reflect the new domain.

Step 3: Move Website Files

  1. Update File Paths:
    • Using an FTP client or cPanel File Manager, move all website files to the new directory.
    • Update paths in configuration files like wp-config.php and .htaccess accordingly.

Step 4: Update Database URLs

  1. Search and Replace:
    • Utilize a tool like “Better Search Replace” or execute SQL queries to update old URLs in the WordPress database to the new ones.

Step 5: Adjust Wordfence Configuration

  1. Review .user.ini File:
    • Locate the .user.ini file in the root directory.
    • Update the path to the Wordfence configuration file to match the new directory structure.

Step 6: Check and Update Plugins

  1. Review Plugin Settings:
    • Inspect the settings of security plugins and caching tools to ensure they reflect the new website URL.

Step 7: Verify File and Folder Permissions

  1. Correct Permissions:
    • Check and set the correct file and folder permissions on the server to avoid 403 Forbidden errors.

Step 8: Test Your Website

  1. Check for Errors:
    • Open your website in a browser and thoroughly test its functionality.
    • Review server logs for any PHP warnings or errors.

Step 9: Update Cache and Security Plugin Paths


  • Open the ‘wp-config.php’ file and search for the line containing:

define( ‘WPCACHEHOME’, ‘/home/[your-username]/public_html/old-directory/wp-content/plugins/wp-super-cache/’ );

Update it to reflect the correct path:

  1. define( ‘WPCACHEHOME’, ‘/home/[your-username]/public_html/wp-content/plugins/wp-super-cache/’ );


  • Open the ‘config-synced.php’ file in the ‘wp-content/wflogs’ directory and search for the line containing:


Update it to the correct path:


Jetpack WAF Files:

  • Open the ‘bootstrap.php’ file in the ‘wp-content/jetpack-waf’ directory and update the following lines:

define( ‘JETPACK_WAF_DIR’, ‘/home/[your-username]/public_html/old-directory/wp-content/jetpack-waf’ );
define( ‘JETPACK_WAF_WPCONFIG’, ‘/home/[your-username]/public_html/old-directory/wp-content/../wp-config.php’ );

Update them to the correct paths:

define( ‘JETPACK_WAF_DIR’, ‘/home/[your-username]/public_html/wp-content/jetpack-waf’ );
define( ‘JETPACK_WAF_WPCONFIG’, ‘/home/[your-username]/public_html/wp-config.php’ );

Step 10: Update wp90_options Table

  1. Access the Database:
    • Use phpMyAdmin or a similar tool to access your WordPress database.
  2. Locate the wp90_options Table:
    • Look for the wp90_options table in the database.
  3. Update Site URLs:
    • Locate rows with option_name containing siteurl and home.
    • Update the option_value of these rows to match the new website URL.

Step 11: Update Permalink Settings

  1. Access Permalink Settings:
    • In the WordPress dashboard, go to Settings > Permalinks.
  2. Resave Permalink Settings:
    • Without making any changes, click the “Save Changes” button.
    • This ensures that the permalink structure is updated based on the new URL.

Step 12: Update WordPress URL in wp-config.php

  1. Open wp-config.php:
    • Access the wp-config.php file in the WordPress installation directory.
  2. Update WordPress URL Constant:
    • Locate the following lines:

define(‘WP_HOME’, ‘’);
define(‘WP_SITEURL’, ‘’);

Update the URLs to match the new domain:

define(‘WP_HOME’, ‘’); define(‘WP_SITEURL’, ‘’);


By following these additional steps, you ensure that the database, Permalink Settings, and WordPress constants reflect the new URL. This comprehensive approach helps maintain consistency across all aspects of your WordPress site after migration.

Remember to perform thorough testing after making these updates to ensure the correct functioning of your website on the new domain. If any issues arise, refer to your backup or seek assistance from your hosting provider. Happy migrating!

0 0 votes
Article Rating


About Author

I'm Suresh Kumar, Director of DOMAIN REGISTRATION INDIA PRIVATE LIMITED – one of India's premier Domain Registration and Web Hosting Companies. With over 17 years of experience as a Linux Server Administrator, I have profound expertise in virtualization and control panel software, including WHM/cPanel, Plesk, and Direct Admin. Beyond server administration, I am a seasoned Full Stack Developer, specializing in the LAMP stack (Linux, Apache, MySQL, PHP). Additionally, I'm adept at web development with HTML, CSS, and JavaScript. As a WHMCS expert, I've also ventured into the dynamic world of digital marketing. My skills span On-Page SEO, comprehensive site audits, pay-per-click campaigns, content marketing, and both blog and article writing. For insights and articles, you can check out my blog at I'm always open to networking and collaborations. Feel free to reach out to learn how my company and I can cater to your digital requirements.

Notify of

Inline Feedbacks
View all comments

You may also like

Step-by-Step Guide

How to Register a Domain Name and Web Hosting(website) for Your Own Business

Go to google and search Enter your domain name here and click here to search Next comes a search
Domain India Client Area
Step-by-Step Guide

How to Access and Manage Client Service Portal (Client Area) of Domain India

The Client Area (Dashboard) of our Customers Management Portal is where client access the product / service and manage their
Would love your thoughts, please comment.x