I created a wordpress site on my server, everthing worked fine. It was under a subdomain of one of my previous domains. Then, once the site was ready, I bought a new domain for it and pointed that domain straight to the wordpress directory. Then I changed the site url and home url in the wordpress settings – and was thrown out of the control panel and could no longer log in.
When I tried to open the site, I always got redirect errors for no reason, considering neither before nor after the URL change there was HTTPS involved, they were all HTTP URLs (the local domain registry requires a wait time for 24 hours for a HTTPS certificate). Also I ensured that the .htaccess file was correct.
Then I changed the URLs back in the database, and suddenly the home page worked again, but articles still only give a “not found” error.
Tried going back and forth several times, no success.
What is going on there? Please fix that bug asap…
[ad_2]
Sure it’s not just a caching issue? Did you try a different browser, incognito etc.?
Those two values are to tell WordPress what the site URL is. If you change them incorrectly, the site breaks, as you have discovered.
WordPress doesn’t control its own URL, it gets told what it is. This is not a bug. You have to make the URL work properly before changing that value to something else.