Forums

localhost redirects to the live version! (3 posts)

  1. halexblue
    Member
    Posted 3 years ago #

    Guys, I don't know what to do..

    I have a wordpress site in, say, http://example.com/. I want to make an exact copy of the site in the localhost (kind of mirror site). I've create mySQL database, create back-ups, copy the files in the back-ups to the localhost, etc. However, everytime I go to http://localhost/local_example, the browser redirects me to http://www.example.com/local_example. I don't know how to figure these out...

    Thanks in advance for the help...

  2. tagging
    Member
    Posted 3 years ago #

    Hi,
    have you checked your .htaccess file? Maybe a redirect is still there.
    And in the Mysql databse you need to change in wp_options the siteurl field.
    cheers

  3. krynsky
    Member
    Posted 3 years ago #

    @halexblue I had the same issue and @tagging is correct. Here is a link with more details on how to do this:
    http://urbangiraffe.com/2005/05/22/installing-wordpress-on-your-own-windows-computer/6/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.