I've moved my Wordpress installation from my development domain to the live domain, but it keeps redirecting every page back to the old (dev) domain.
So far I've:
Added
define('WP_HOME', 'http://example.com']);
define('WP_SITEURL', 'http://example.com');
to 'wp-config.php'
Edited the 'siteurl' and 'home' entries in 'wp-options' in the database.
Re-downloaded the database and replaced every mention of the old URL with the new URL, then deleted the (live) database and imported the new one.
Checked '.htaccess' for any redirects/rewrites.
Cleared browser cache and server cache (multiple times - after each previous step).
It still redirects every page to the dev-url. For example, if I type in
'new-url.com/post-123'
it redirects me to
'dev-url.com/post-123'
The only thing that works is visiting 'new-url.com/wp-login.php', that way I have access to the backend. The site-/homeurls in the backend are set to 'new-url.com'.
What have I missed? Thanks in advance!
Edit: I had Q-Translate X set up to have a different domain for each language, that's what kept redirecting me to the old site. I don't know if Q-Translate saves settings in the DB, if not that would be why nothing else helped. Thanks for all the help guys!