Under the “Settings” tab in your WordPress backend is a setting called
WordPress Address (URL)
If this is set to the wrong URL, you are likely to get an error page that breaks your website. Regardless of how it happened, you will not be able to access the backend of your website to correct it, so how do you fix your broken website?
Don’t freak out, it’s pretty simple.
The first step is to access myPHPadmin/PhpMyAdmin (or any other variation that your cPanel may call it).
This can be accomplished through your cPanel. If you need help accessing either of these things, contact your web designer or hosting company.
Once you have gotten into myPHP admin, you will want to open up the database corresponding to the broken website.
The name of your database will be on the left of the screen. If you open up the database, you will find several tables, one of which is called
wp_options
Click it. At the top of that table, you will see
siteurl
and to the right of that, the URL address that needs correcting.
You may correct it there, make sure the changes have saved, and control + F5 your website.
Immediately go back into your backend, then to settings, and then permalinks.
Regardless of what your permalinks and currently set to, change it. Then save it, change it back to what it was originally set to, and save it again.
BOOM!
That is all. Your entire website should now be back up and running!