WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Complete 301 redirect issue

[Resolved] Complete 301 redirect issue

  • dominik79

    @dominik79

    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:

    Options +FollowSymLinks
    RewriteEngine on
    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?

Viewing 1 replies (of 1 total)
  • dominik79

    @dominik79

    Ok, found the solution – the site URL on the new domain was still pointing to the old one and the old one was redirecting back to the new one. I changed the URL in the database and everything seems to be working now.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Complete 301 redirect issue’ is closed to new replies.
Skip to toolbar