+91 88 00 563434 sales@webhostingpeople.net

Our Knowledge Base Articles

Company Blog

How to quickly change the wordpress site url editing wp-config.php

You are here:

WordPress is a free and open-source content material administration system(CMS) primarily based on PHP and MySQL. WordPress retains observe of itself through WordPress deal with and web site deal with settings. Should you change the placement of WordPress set up or migrate your WordPress web site, you might want to change the URL of your WordPress web site. It’s a frequent observe 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 is not going to work correctly for those who merely transfer all of your information and database to a different location. It’s as a result of WordPress depends on its URL settings to work correctly.

 

WordPress Deal with and Web site Deal with

WordPress deal with is the place your WordPress core information reside. The WordPress admin pages together with different essential elements corresponding 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 similar for a traditional WordPress set up. These addresses range when you could have put in your WordPress in a listing apart from your public house web page(public_html). If you’d like your root listing free from WordPress directories and information, then set up it on every other listing underneath the basis listing.

Change WordPress deal with with wp-config.php file

 

The default obtain bundle of WordPress doesn’t embody the wp-config.php file. As a substitute, it incorporates wp-config-sample.php which is renamed to get the wp-config.php file. It is likely one of the core information of your WordPress web site. It incorporates important details about the database, WordPress house, and web site URL settings. We are able to simply modify the WordPress URL through wp-config.php file. This technique could be very helpful while you misplaced the power to switch them out of your WordPress dashboard.

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

2)Add or modify the beneath strains and save file.

outline(‘WP_HOME’,’http://webhostingpeople.web’);
outline(‘WP_SITEURL’,’http://webhostingpeople.web’);

Change webhostingpeople.web to your personal area title.

The modifications ought to go underneath the MySQL settings.

Leave a Comment