Sharing is caring!

Do you want to change your WordPress URL? Whether or not you’re transferring from HTTP to HTTPs, altering your domain title, migrating from native server to reside website, or transferring to a subdomain, you have to know to tips on how to change your WordPress site URL.

The WordPress address and website address are extraordinarily necessary fields as a result of they reference the address of your web site on the web and the placement of your web site information.

In this article, we are going to share 4 alternative ways to simply change your WordPress website URLs (step-by-step).

A number of causes to change the URL

The next are instructions for transferring a WordPress set up from one URL to a special one. There are totally different instances for transferring a WordPress install, as proven beneath.

Case #1 — Transferring from a subdirectory

The primary case is when a WordPress website strikes from a sub-directory to its parent domain. For instance:

  • Transfer from

In case you’ve already moved your domain to a brand new URL, you aren’t capable of log in since WordPress is configured to make use of the previous URL.

Case #2 — Including or eradicating www

One more reason to replace your URLs is that if you must add or take away www out of your domain. For instance, when you’re utilizing Cloudflare with Bluehost, you must add www to your domain. So if it was beforehand, you’d change it to

After adjusting the URL, you might also see a browser redirect error when viewing your website. It could say “Too many redirects” or “The web page is not redirecting correctly”.

Case #3 — Including ‘https’ to the URL

For those who’re utilizing an SSL certificate, the primary a part of the URL adjustments from ‘HTTP’ to ‘https’. For those who’ve already made this alteration, you aren’t capable of log in since WordPress is configured to make use of the previous URL.

Case #4 — Shifting to a brand new domain

The final case is when a WordPress website strikes from one absolutely hosted domain to a special one. For example:

  • Transfer from

If this selection applies to your website, view the following article for full directions on transferring a WordPress set up to a special area

WordPress Address vs Website Address

When altering WordPress website URL, you have to replace two separate settings: WordPress Handle and Website Address.

This may be complicated for a lot of inexperienced persons as a result of they don’t know what’s the distinction between the 2 settings.

Your WordPress Address (URL) is the address the place WordPress information and folders are saved together with your admin pages, media information, plugins, themes, and so forth.

Your Website Address (URL) in WordPress is the general public going through a part of your web site. That is what your guests will sort in to succeed in your web site. That is additionally the link that you just placed on what you are promoting cards.

For the majority of customers, the WordPress Address and Website Address URL would be the very same hyperlink.

Nevertheless, in some instances, massive corporations could host their WordPress site on a special server as a result of their company web site has many different functions, they usually wish to isolate the place every app is hosted.

However, for the majority of customers, these two WordPress URLs want to remain identical.

That being mentioned, let’s check out how to easily change WordPress website URLs. We are going to present to you the next strategies, and you may select the one which works finest for you.

Prepared? let’s get began.

Technique 1. Change WordPress Website URLs from Admin Area

This technique is best. For those who can already enter the WordPress admin area, then we suggest utilizing this technique.

Merely login to your WordPress web site and go to Settings » General web page. From right here you may change WordPress website URLs below the ‘WordPress Address’ and ‘Website Address’ choices.

Change WordPress site URLs in the admin area

WordPress Address and Website Address are normally identical addresses.

Now click on the ‘Save Changes’ button to store your settings. Now you can go to your web site to ensure that all the pieces are working OK.

Technique 2. Change WordPress Website URLs Utilizing functions.php File

This technique is really useful for customers who can’t enter the admin area of their WordPress web site.

Merely hook up with your WordPress website using an FTP client and go to /wp-content/themes/your-theme-folder/.

Edit WordPress functions file

From right here you must find the functions.php file and edit it utilizing a plain text editor like Notepad or TextEdit.

Subsequent, you must add the next code on the backside:

update_option( 'siteurl''' );
update_option( 'home''' );

Don’t neglect to interchange with your personal website URLs. Now you can save your adjustments and add the file again to your web site internet hosting utilizing FTP.

Now you can go to your web site to see if all the pieces are again to regular.

The benefit of this technique is that it updates the location URLs within the database. WordPress updates the database possibility for website URLs each time your features file is loaded.

As soon as all the pieces will get again to regular, don’t neglect to take away the 2 traces of code out of your WordPress functions file.

Technique 3. Change WordPress Website URLs Utilizing wp-config.php File

This technique is simply really useful in case you are not sure which WordPress theme you must edit or can’t discover the functions.php file.

For this technique, you’ll be including the location URLs to your WordPress configuration file known as wp-config.php. This file is positioned within the root folder of your web site and incorporates necessary WordPress settings.

Merely hook up with your web site utilizing an FTP client and edit the wp-config file. You’ll want to add the next code simply above the road that claims ‘That’s all, cease enhancing! Completely happy publishing’.

define( 'WP_HOME''' );
define( 'WP_SITEURL''' );

Don’t neglect to interchange with your personal domain title.

Now you can save your adjustments and add them again to your server. After that, go to your web site to ensure that all the pieces are working high quality.

Technique 4. Change WordPress Website URLs within the Database Utilizing phpMyAdmin

One other solution to replace WordPress website URLs is by altering them immediately in your WordPress database.

First, you must make a WordPress database backup. This step is admittedly necessary and can provide help to undo database adjustments in case something goes mistaken.

After that, you must go to your hosting account’s dashboard and click on on the phpMyAdmin icon below the Databases part.

Word: Our screenshot is from Bluehost however most different WordPress hosting companies may also have the flexibility so that you can edit database settings.


When you click on the link, it can launch the phpMyAdmin app, which gives a web-based interface to edit MySQL databases.

Inside the phpMyAdmin interface, you must click on in your WordPress database from the left column. The app will now show tables inside your WordPress database.

Edit options table

Subsequent, you must scroll all the way down to the choices desk. By default the database prefix is wp_ however since you may change WordPress database prefix, your screenshot could have a special prefix.

PhpMyAdmin will now show the rows contained in the choices desk. You’ll want to find the rows the place option_name is site URL and residential.

Edit siteurl and home values

Subsequent, click on on the pencil icon on the left to edit every row and alter the option_value discipline to the brand new website URL. After that, click on on the tiny Go button on the backside proper nook to save lots of your database adjustments.

Edit option_value

Now you can go to your web site to see if all the pieces are working high quality.

Incessantly Requested Questions (FAQs)

Why are my WordPress Address and Website Address fields greyed out?

If the WordPress address (URL) is greyed out on the settings web page of your admin area, then it signifies that the URLs are laboriously coded within the wp-config.php file.

To vary your WordPress URL, you have to comply with technique Three in our article to edit the wp-config.php file and alter the URL accordingly.

The right way to get well WordPress after URL address change in settings?

Typically non-techy customers can by accident change WordPress URL and Website Address settings from the WordPress admin area. To get well from that, you’ll have to comply with our information above to alter the WordPress URLs again utilizing features.php, wp-config, or the database technique.

Is there a WordPress change URL plugin that may bulk replace URLs in all weblog posts, pages, and different content material areas?

Sure, you may both use the Velvet Blues Update URLs plugin or the Better Search Replace plugin.

If you change your WordPress URL, you have to a solution to bulk replace hyperlinks by way of your WordPress posts, pages, and different areas in your database. The above plugins are an enormous time saver.

Other than utilizing them to replace URLs when transferring web sites, we additionally use them for varied different platform migrations resembling moving from to, Blogger to WordPress, Weebly to WordPress, and so forth.

We hope this text helped you simply change the WordPress website URLs.

0 CommentsClose Comments

Leave a comment