I'm trying to migrate my site from a domain.com to domain.co.uk. Everything stays the same, only .com goes to .co.uk
So far I already:
- transferred the files
- transferred the database
- inserted the following code to .htaccess:
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
And everything seems OK at first. But now I can't login to backend. After I put in the username and password, the screen simply refreshes and I need to put both in again, still not logged in. And after that it just refreshes again, and so on.
Also, all the links to post and pages are still domain.COM/page/ on hover, not domain.CO.UK/page/.
What step did I miss?