WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] localhost admin login redirects to live site admin area??? (3 posts)

  1. webmachine
    Member
    Posted 2 years ago #

    I converted an existing site into a cms using WP locally, tested it and it worked fine. Then I published a version of this site on the internet. I was having problems with the permalinks, and trying things with .htaccess. I think in the process, I deleted my .htaccess file from my local site. Now when I try to login in to my local admin area, I get redirected to the live site! and my local site pages link to the live site (with pages not found). How do I fix this mess?

  2. You might need to go in your database and make sure that the right url in in your wp_options table.

    Look for site_url and home. They should have the localhost url and not the live site.

  3. webmachine
    Member
    Posted 2 years ago #

    Thank you. That worked. I have no idea how the urls got switchedm but problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic