How to Change WordPress Address URL

| June 4, 2015 | 0 Comments

wordpress

Changed blog URL recently and now your WordPress Dashboard is messed up? Don’t worry you can alter it in your website’s CPanel.

Recently, I decided to add WWW to my blog. I did all the configurations in Webmaster tools and .htaccess file but forgot to configure WordPress Address in Settings. It messed up my WP-Dashboard. And this is how I recovered.

  • Open Cpanel.
  • Open File Manager. And search for wp-config.php
  • Open this file in Code Editor.
  • Add the following code:
    define('WP_HOME','http://www.example.com');
    define('WP_SITEURL','http://www.example.com');
  • In the above code, delete the url in quotes and copy-paste exactly the same url where your WordPress blog is landing.

The following configuration will recover your blog. But it has a drawback, Now you cannot configure WordPress Address and Site Address from WordPress settings. This option will look greyed out. But now you know how to change it manually, like a boss.

Tags: ,

Category: Internet

About the Author ()

Anil is a tech blogger at WideFide. To know more about me or if you want to follow my latest updates, Follow me on twitter @TheOnlyAnil or Join me @ Facebook