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:

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.

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:

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.
Leave a Reply