How to Change Your WordPress Domain/Site URLs (Step by Step Guide)
One of our BoostedHost client contacted us few days ago to change the domain URL of existed WordPress website..
We understand how stressful that circumstance might be because it requires lot of experience to know how to do it perfectly.
It has come to our attention that WordPress URL changes require particular caution. One minor error could disrupt all of your internal links or render your website inoperable.
Allow us to demonstrate how to update the URLs of your WordPress websites correctly. We will take you through several techniques that we have personally tried and tested so you can select the one that suits your needs the best.
Why Modify the URLs of WordPress Sites?
You may need or wish to modify your WordPress URLs for a variety of reasons:
When transferring WordPress from a local server to a live site, site URLs must be updated.
You will need to update site URLs to reflect the change if you have renamed your WordPress website to a different domain name.
Since you are relocating WordPress to a new directory, you must modify the site URLs. For example, you must remove /wordpress/ from your WordPress URL.
When switching WordPress from HTTP to HTTPS, you will also need to update URLs.
In addition, if you encounter the problem "too many redirects" or are investigating another WordPress issue, you might need to adjust the address settings in WordPress.
The WordPress address and the site address are two different settings that you must adjust when you change your WordPress URL.
Method 1: Modify the URLs of WordPress sites from the admin area
The simplest and most accessible approach is this one. We advise utilizing this strategy if you have access to your WordPress admin panel.
This technique allows you to maintain complete access to the admin area while making a planned, controlled change to your website's URL, such as switching from HTTP to HTTPS as this is the safest approach for novices.
Simply select Settings » General after logging into your WordPress dashboard.
The "WordPress Address" and "Site Address" boxes allow you to modify the URLs of your WordPress websites.
Modify the site's address and WordPress address As previously stated, these will be the same URL for the majority of websites.
Then, to save your URL modifications, click the "Save Changes" button.
You can now check your website to make sure everything is operating as it should.
Method 2: Use phpMyAdmin to Modify WordPress Site URLs in the Database
Changing the URLs of your WordPress sites directly in the WordPress database is an additional method. This may be done straight from the dashboard of your WordPress hosting account.
Important: We advise creating a backup of your WordPress database before proceeding. This is crucial because, in the event that something goes wrong, it will enable you to reverse any WordPress database modifications.
Next, you must click the "phpMyAdmin" icon in the "Databases" area of your web hosting account dashboard after logging in.
The phpMyAdmin application, which provides a web-based interface for editing MySQL databases, will be launched immediately as a result.
In the left-hand column, you must first click on your WordPress database. Tables within your WordPress database will be displayed as a result.
Next, select the option for the "wp_options" column.
Click on wp-options and database. Since you can modify your WordPress database prefix, it may be something different than the default of "wp_."
Rows are now visible inside the options table. The "siteurl" and "home" will be listed in the "option_name" column, which you must find.
Change the name of the options First, enter your new site URL in the "option_value" column by clicking the pencil "Edit" symbol to the left of each row.
To locate the "home" option name, you might have to scroll down the options table.
Then, to save your database modifications, just click the "Go" button in the lower right corner.
Modify the URL for the option name You may now check that everything is functioning properly by going to your website.
Enjoy!
Last updated
Was this helpful?