In the WordPress admin dashboard settings > general – you can find two options. WordPress address URL and Site address URL. These two field are very much important because they control where WordPress thinks your site is located. These two settings allows to act upon the functions in the backend and display them in the front end as well.
The WordPress URL is the exact address you want people to type in their browser to reach your WordPress blog. The Site address URL is the address where your WordPress core files reside. If you use multiple wordpress installation and don’t want to clutter your root directory with wordpress files. WordPress allows you to install it into a subdirectory, but have your blog exist in the site root. So while changing these settings, sometimes you may face issue such as blank page and you cannot access your WordPress dashboard.
If you’re modifying the wordpress address url instead of site address url then you cannot access the dashboard. The only way to revert back to old settings is to play with functions.php file through your FTP. Just before learning how to fix this issue, you should make sure that the both settings should include the http:// part and should not have a slash “/” at the end.
If you’ve messed up with the settings part and not able to see the wp-admin dashboard, don’t panic. Follow the below steps and recover back to old settings. You can return everything to normal just by adding 2 lines of code to your Functions.php file through your FTP login. This error normally happens when you are moving WordPress from one site to another, as this will also require changing the site URL.
Follow this method that will help you quickly get a site back up and running. If you have FTP access to your site, all you have to do is add these lines to your file functions.php located in your template directory. Functions.php can be found inside your theme folder. (wp-content/themes/)
Open the functions.php in a simple notepad text editor and add these two lines to the file, immediately after the initial “update_option(‘siteurl’,’http://example.com/blog’);
Do not forget to change the http://example.com/blog by your address. Once done, refresh your browser (hit F5) multiple times. If your using any cache plugin, hit Ctrl+F5. Now you should be able to access your admin panel. When you can access your admin dashboard, go to the Functions.php and remove the 2 lines which you added recently.
Do NOT leave those lines in there. Remove them immediately after the site is up and running again.
| For a limited time I'm sharing some select Tips and Tricks and How-To Guides for FREE. |