WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Complete 301 redirect issue (2 posts)

  1. dominik79
    Member
    Posted 2 years ago #

    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?

  2. dominik79
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic