MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to change WordPress address with wp-config.php file.  (Read 3796 times)

0 Members and 1 Guest are viewing this topic.

Offline Rahul Sambre

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
How to change WordPress address with wp-config.php file.
« on: July 24, 2016, 05:20:45 AM »
Hello,

The easiest way to modify your WordPress URLs is via the wp-config.php file. If you've moved your WordPress site or are trying to test it from a temporary URL, this also might be the only method that works for you.

1) Edit your wp-config.php file.
2) Define your WP_HOME and WP_SITEURL settings by inserting below lines to the top.

Quote
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

That's it.  :)

MilesWeb Hosting Forum

How to change WordPress address with wp-config.php file.
« on: July 24, 2016, 05:20:45 AM »