How To Change The WordPress Home URL Manually

To change the values of WP_HOME and WP_SITEURL manually in WordPress, look for the file wp-config.php then add these two lines anywhere in your code (I suggest you place these at the top).

That should force your WordPress site to use those urls as its home urls rather than updating them in the database. This solution is quicker.

Related Posts Plugin for WordPress, Blogger...


  1. If after all, the site works but you can’t edit the URL from the Admin page : Go to the database, select the table x_options (with x being the prefix you chose when you installed your site), and look for the column ‘siteurl’ and change it back to localhost/whatever .
    Hope it’ll help 😉

Leave a Reply

Your email address will not be published. Required fields are marked *