How to change website address of WordPress site

There are times when you need to move your website from one address to another, a simple html website can be just downloaded by a ftp client and uploaded to the new hosting place and that’s that… But when it comes to WordPress site you have to take a few extra steps to get the job done. Here is how to change the website address in WordPress.

First of all you should know how to backup a WordPress site, if you don’t then check out this link before continuing.

You should also know how to restore WordPress site, if you don’t then check out this link before continuing.

After you have moved your website to a new address you need to make some changes in configuration and database files so that the WordPress knows where to operate the site from. If you don’t make these changes you will see that when you enter the new website address (e.g. newaddress.com) your site will automatically try to load from the older address (e.g. oldaddress.com) and that will cause an error if there is nothing there.

Here is a step by step guide of how to change the website address in WordPress.

Using CPanel File Manager

Step 1:

Using CPanel access File Manager and edit wp-config.php as shown in the images below

how to change the website address in WordPress    how to change the website address in WordPress

Step 2:

Add the following 2 lines in the php file (replace example.com with you new site address)


how to change the website address in WordPress

Step 3:

Login to your wp-admin page a few times and your website will start running in a few minutes.

Some times the above mentioned approach does not work in such case use the following alternate method

Using phpMyAdmin

Step 1:

Click on phpMyAdmin as shown below

Step 2:

Select your database on the left pane and you will have the following view

click on edit and change the website address as shown below

that’s it all pages will start loading properly now..

Regardless of which ever process solves your problem, these approach only works on WordPress generated links any links hard coded by you will still need to be updated manually.

Have fun 🙂

Earn up to $7500 for one sale!


Absar A. Ansari


  1. Hey webmaster
    When you write some blogs and share with us,that is a hard work for you but share makes you happly right?
    yes I am a blogger too,and I wanna share with you my method to make some extra cash,not too much
    maybe $100 a day,but when you keep up the work,the cash will come in much and more.more info you can checkout my blog.
    good luck and cheers!

  2. I needed to compose you a little bit of note in order to thank you once again about the beautiful views you’ve provided here. It is quite unbelievably open-handed with you to make extensively just what a number of us would’ve distributed as an ebook to help make some dough for themselves, precisely seeing that you could have done it if you desired. Those concepts as well served to be a good way to comprehend other people have similar desire much like mine to grasp significantly more when considering this condition. I am sure there are many more pleasant opportunities up front for individuals that looked at your website.

Leave a Reply

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