Change Site URL – WordPress – Error – Breaks Site Structure

Author posted by Jitendra on Posted on under category Categories Web Technology and tagged as Tags with 1 Comment on Change Site URL – WordPress – Error – Breaks Site Structure

Changing site URL in Wordpress sometimes breaks the structure of site and users are not able to even login as admin to correct the problem. So here is the solution.

Changing site URL in WordPress sometimes breaks the structure of site and users are not able to even login as admin to correct the problem. So here is the solution.

Below is the example, that how the URL setting breaks the site:

WordPress Change URL Setting Breaks Website - error
WordPress Change URL Setting Breaks Website - error

To fix this problem,

You have to change the entry in database, as you cannot even log in to admin panel of wordpress.

Go to Cpanel of your hosting site and open the wp-config.php to know the database in which tour wordpress application is save.

WordPess Edit Wp-Config Get DataBase Name
WordPess Edit Wp-Config Get DataBase Name

As you can see in above snap, the database name is “ilovenag_wrdp3”, off course it will be different for your website.

Now go to the above database as shown in below image:

WordPess Database Correct Site URL entry
WordPess Database Correct Site URL entry

As you can see in above image, go to “wp_options” and edit the row number 2 and enter the correct domain name. and your problem will be solved.

Now login in wordpress by admin and revert the changes you had made earlier.

Note : It is suggested that first you take the backup of wordpress database and then only perform the operations for the safer side.

Related posts

  • Jerrod Tallon

    Wonderful job once again.! Go on with posts like this one!=)