Explore our in-depth
crafted by
skilled professionals!

Our Latest News, Advice and Thoughts

WordPress – Changing Site URL and Home Settings

You are here:

On this tutorial we are able to test methods to change WordPress Web site URL and House settings.

WordPress is a free and open-source content material administration system(CMS) primarily based on PHP and MySQL. WordPress retains monitor of itself by way of WordPress deal with and web site deal with settings. When you change the placement of WordPress set up or migrate your WordPress web site, it’s essential to change the URL of your WordPress web site. It’s a frequent follow to develop the brand new model of your WordPress web site in a subfolder and transfer it to the primary listing, when the web site is developed. However your WordPress web site won’t work correctly, for those who merely transfer all of your recordsdata and database to a different location. It’s as a result of WordPress depends on its URL settings to work correctly.


WordPress Tackle and Web site Tackle

WordPress deal with is the place your WordPress core recordsdata resides. The WordPress admin pages together with different vital components akin to /wp-content/, /wp-include/ lies right here. It’s the place the mind codes of your WordPress web site lie. WordPress web site deal with is the URL typed in a browser to achieve your WordPress web site. It’s the URL that your guests use to go to your web site. Each the addresses are identical for a standard WordPress set up. These addresses differ when you’ve put in your WordPress in a listing apart from your public house web page(public_html). In order for you your root listing free from WordPress directories and recordsdata, then set up it on every other listing beneath the basis listing.


Change WordPress deal with in admin dashboard

Observe the under steps to change WordPress URL settings instantly from admin dashboard.

1) Login to WordPress admin dashboard.

2) Click on on Settings >> Basic.

3) Fill in your WordPress deal with and Web site deal with.

4) Save the settings.


Change WordPress deal with with wp-config.php file

The default obtain package deal of WordPress doesn’t embrace the wp-config.php file. As an alternative it comprises wp-config-sample.php which is renamed to get the wp-config.php file. It is without doubt one of the core recordsdata of your WordPress web site. It comprises important details about the database, WordPress house and web site URL settings. We are able to simply modify the WordPress URL by way of wp-config.php file. This technique could be very helpful if you misplaced the flexibility to change them out of your WordPress dashboard.

1) Utilizing your favourite editor, edit wp-config.php file.

2)Add or modify the under traces and save file.



Exchange ‘http://webhostingpeople.internet’ with your own home deal with and web site URL.


Change WordPress deal with with Relocate

You probably have any problem in accessing your WordPress admin dashboard, set Relocate flag worth to ‘true’ in wp-config.php file. WordPress will then mechanically work out what deal with must be utilizing Relocate flag in wp-config.php file.

1) Utilizing your favourite editor, edit wp-config.php file.

2) On the high of the file add the under line and save file.


3) Go to your http://instance.com/wp-login.php in your browser. Exchange http://instance.com along with your WordPress core recordsdata.

4) Login to your WordPress dashboard and navigate to Settings >> Basic and it’s best to see WordPress has already modified the ‘WordPress Tackle’ subject.


Change WordPress deal with with perform.php

Every WordPress theme has a perform.php file in it. Utilizing this file, we are able to replace the WordPress deal with into the database. The direct modification of database might be prevented through the use of a pleasant perform ‘update_option’ within the perform.php file.

1) Utilizing your favourite editor, edit perform.php file of your theme.

2) Merely add the under traces and save file.



3) Load your web site from its new location

4) When you run your web site efficiently be certain to delete these traces out of your perform.php file.


Change WordPress deal with with phpMyAdmin

Utilizing phpMyAdmin, you possibly can instantly modify and replace your WordPress deal with in database. Observe the under steps to vary the WordPress deal with.

1) Login to your phpMyAdmin

2) Create a backup of your database earlier than making adjustments.

3) Choose your WordPress database from the left

4) Choose wp_options desk

5) Click on Edit beside both the location url or house entries

6) Enter your new WordPress deal with within the option_value subject after which click on go


When you want any additional help please contact our help division.



Leave a Comment