How to change a WordPress domain name …

            Change a wordpress domain name is a critical work but it can be solved easily by using these small techniques. If you’ve ever been married, divorced or changed your name otherwise, you know that it’s a giant pain in the ass to think of all of the places you need to change it. I’ve been married for a couple years now and I still haven’t changed my name everywhere. I doubt I’d even be able to list all the places I need to change it… Luckily I can list all the places you need to change your business name and URL.

Step 1: Install and activate ManageWP Worker Plugin.

It can be solved by using a plugin called called ManageWP Worker. It’s free up to 5 websites, and it takes care of the boring website maintenance stuff you need to keep up on so you don’t get hacked. So visit the plugin website and enter your email address to sign up for free by creating a free account. Once your account is created, you’ll be on this page where you enter your URL, select “Yes”  then enter your First name & Last name as asked. For site verification you can either enter your WordPress username and password or you can use connection key. You get the connection key after installing the plugin look the Plugin description area to get the link  Connection management . Then use your current url (old url in which the plugin is installed ), not the (new url) one just to change. Once your site is added.


Step 2: Visit dashboard and follow the steps.CHANGE A WORDPRESS DOMAIN NAME

  • click on the site name to expand the menu options.
  • Click on Backup Now.
  • Wait for a complete Backup to Create a Backup.
  • Goto bottom and click on More Tools.
  • Click on Maintenance Mode.

follow these prerequisites before changing the domain name:

  • Full backup of your site. – a full backup helps you restore or recover your website as fast as possible if you run into any issues. You can automatically back up your site via a plugin or your hosting provider’s file manager.
  • C-Panel or an FTP client – if you want to change WordPress domain, you’ll need access to your C-Panel by logging into your Hosting account or use an FTP client.
  • A new domain name – proper research is required before settling down on your final decision.


Step  3: Add the New Domain to Your Hosting:

To use the new domain, you need to add it to your hosting. You can easily Add you domain from cPanel. Just click on the Addon Domain Option.


Step 4: Login to WordPress Dashboard to change the url.

                Login to the WordPress Dashboard go to  Settings > General  and click on General Change your site name and the URL in both places. Scroll to the bottom of the page and click Update. Then cross your fingers!


Now WordPress will log you out, so log back in: Hopefully you’re able to get logged back in. Your old site URL and the new site url will take you to the same site. Now go back to ManageWP and turn off Maintenance Mode.You’ll also want to click the Remove link to remove the old URL from Manage WP, then click the green Add a Website button on the bottom left to add the site using your new URL.

Step 5: Update the wp-config.php File:

To reflect the changes you made in the WordPress settings, you have to edit the wp-config.php file. You can access it from the hPanel’s file manager or by using FileZilla. For this example, we’ll be using the C-Panel:

  1. Head to C-Panel -> Files -> File Manager.
  2. Choose the domain and click Go to File Manager.
  3. Locate the wp-config.php file in the public_html folder.
  4. Right-click and select Edit.
  5. In the following snippet, replace with your new WordPress domain name, then insert it into the file and press Save & Close.
  1. define(‘WP_HOME’,‘’);
  2. define(‘WP_SITEURL’,‘’);

It is as follows:

Screen Shoot wp config php file with the code snippet

  Sept 6: Update Your Database

Next, you’ll have to update your WordPress site’s database:

  1. Navigate to hPanel -> Databases -> phpMyAdmin.
  2. Choose the database where your WordPress files are located and click Enter phpMyAdmin.
  3. On the phpMyAdmin page, find the wp_options file.
  4. Select Edit on the site URL and home rows.
  5. Replace the current URL with your new domain and press Go.

Screen Shoot Edit wp options file

Step 7: Redirect Old WordPress Domain Permanently

The final step to change WordPress domain requires you to create a 301 redirect – a URL redirection from your old domain to the new one. Additionally, the redirect will carry over Google’s PageRank, making sure that all of your efforts put into SEO doesn’t go to waste when moving to a new domain.

We recommended keeping your old domain active for a while. This both allows users to find you if they’re not aware of the domain change and lets the search engines recognize the redirection.

Let’s dive into the hPanel to edit the .htaccess file and create a 301 redirect:

  1. Go to hPanel -> Files -> File Manager.
  2. Select your old domain and click Go to File Manager.
  3. Find the .htaccess file in the public_html directory.
  4. Right-click and choose Edit.
  5. Insert the following code, after replacing with your new domain, then press Save & Close.
  1. #Options +FollowSymLinks
  2. RewriteEngine on
  3. RewriteRule ^(.*)$$1 [R=301,L]

Screen Shoot htacces file with the code snippetSame as with the modifying wp-config.php, this step can be completed with an FTP client.

Step 8 : Other things to Change

             i. Email Address – Log into your C-Panel (your username is still your old URL) and click on Email. Follow the steps to create an email account with your new URL.

Screen Shot Email

             ii. Google Analytics: Log into your account and click on Admin > Account Settings. Change the name there. Then click on Admin > Property Settings (middle column) and change the name and URL there. Your tracking code remains the same, so you don’t lose your stats.

             iii. Logo – this can be updated in Appearance > Customize and change the new domain logo.

           iv. In your Website Content: Download and install find and Replace. Once installed you can access it by clicking on Plugins > Find and Replace. Then enter your name and what you want to replace it with. Once you click search and replace you can’t undo it, so be careful. I just had to go back to the beginning of this post and change some instances back .

Wow, that was a lot of stuff, but it’s better to knock it out all at once. So thanks for hanging with me through this name change!

If there’s one thing I hope you can take away from this it’s that you’re never going to do everything right the first time.

You’re going to screw up, you’re going to make mistakes, but you’ll have the knowledge and confidence to blaze ahead anyway – you can always fix it later.