How to Repair WordPress if ot doesn’t work after changing the URL

One of the actions that can make your WordPress blog totally inoperative is to change the “WordPress Address (URL)” or “Site Address (URL)” field.

If you want to change the URL of your blog, for example trying to change the domain of your site, you should follow the steps of any of the following options to keep your WordPress running normally:

Restore the WordPress URL from the database

In this case, the steps to be followed are the following:

  1. Access the WordPress databse from PHPMyAdmin.
  2. Select the table “wp_options“, or “yourprefix_options” if you changed the WordPress prefix by default.
  3. Access the “Examine” tab.
  4. Look for the “siteurl” tab and click on the “Edit” button (the icon with a pencil shape).
  5. Change the current URL by the new one you want to setup and click on “Continue” to keep the changes.

Restore the WordPress URL with the wp-config.php file.

In this case, you must:

1.Access your hosting through FTP.
2. Open the “wp-config.php” file.
3. Right before the line “/*That is all, stop editing! Happy blogging*/ (almost at the end of the setup document),  must include the following lines

File: wp-config.php

  1. define( ‘WP_HOME’, ‘’ );
  2. define( ‘WP_SITEURL’, ‘’ );
  3. Keep the changes.

And that´s it. Now your readers or clients can enjoy Worpress again, as usual 😉

To write a comment on this article, fill out the form below. Fields marked with an asterisk (*) are required.