Changed WordPress Site URL and Now Locked Out

Higher-risk issue — be cautious and consider professional help sooner.

You changed the WordPress Address or Site Address in Settings, clicked save, and the site broke or the login page vanished. The setting is stored in the database, so it has to be put back from outside WordPress.

Common signs of this issue

Safe checks you can do yourself

None of these require sharing passwords with anyone.

What this usually means

WordPress uses those two settings to build every link, stylesheet, image path, and the login address itself. The moment you save a wrong value, WordPress starts sending visitors — and you — to that wrong place. Because the setting lives in the database, and the dashboard you would use to change it back is now unreachable, you cannot undo it from inside WordPress. That is why it feels like a lockout even though nothing has been lost.

The usual causes are a typo, switching to https before a certificate is installed, changing the domain before DNS points at the hosting account, or adding www when the server only answers on the bare domain. Each one sends the site somewhere it cannot load. The fix is always the same in principle: put the old, working address back from outside WordPress, then make the change again properly.

This counts as high-risk because the tempting fixes cause new damage. Running a search-and-replace across the database, reinstalling WordPress, or editing files on the server without a backup can turn a two-minute fix into real data loss. Your posts, pages, and settings are almost certainly still there; the goal is to change two values and nothing else.

What not to do

When to get help

If you can't reach your hosting account, the host's WordPress tools don't show the site URL, or you're not comfortable touching wp-config.php or the database, this is a good moment to ask your host or a developer — it is a small job for them and a risky one to learn on a live site. Getting help also makes sense if the change you were attempting was a move to https or a new domain: someone can restore the site and then do the switch properly, with redirects and links updated so you don't lose search traffic.

Not sure what to do next?

Answer a few short questions and we'll point you to the safest next step — DIY, a freelancer, or a direct review. No passwords required.

Is this a business website? If this issue may be costing you leads, sales, or trust, you may want a direct review instead of trial and error.

Frequently asked questions

What is the difference between WordPress Address and Site Address?

WordPress Address is where the WordPress files live. Site Address is the address visitors use. For most sites they are identical. They only differ when WordPress is installed in a subfolder but shown at the main domain.

Can I change it back from the WordPress dashboard?

Usually not, because the wrong address stops the dashboard from loading. It has to be corrected in the database, in wp-config.php, or through your host's WordPress tools.

Have I lost my content?

No. Changing the site URL does not delete posts, pages, or images. It only changes where WordPress sends people, so restoring the right address brings everything back.

Why are the URL fields greyed out?

Someone has set WP_HOME and WP_SITEURL in wp-config.php. Those lines override the dashboard settings, so the address has to be changed in that file instead.

I changed http to https and the site broke. Why?

Most likely there is no valid SSL certificate yet, or the server redirects in a way that loops. Get the certificate working first, then switch the WordPress addresses.

How long does a fix take?

For a host or developer with access, usually a few minutes. The longest part is often confirming exactly what the address was before the change.

Related free guides

WordPress site down?

Seeing “There has been a critical error on this website”?

Our guided repair tool logs in over secure FTPS and fixes the most common WordPress failures — safely, with every change backed up and reversible. Start with a free scan, no password needed.

Fix My WordPress Site → Free scan · No download of your site · Reversible