WordPress.org

Forums

Redirect issue (2 posts)

  1. nick2price
    Member
    Posted 2 years ago #

    Hi. I have installed wordpress on my local machine. I can access it at localhost/mysite. However, when I try to go to localhost/mysite/wp-admin, it redirects me to the live version of my website. What would be controlling this?

    Nick

  2. Johnb81
    Member
    Posted 2 years ago #

    Hi Nick2price,

    When you installed the localhost WordPress most probably you specified the same live domain.

    In this case, to be able to access the localhost you can try to edit the Windows host file, found in C:\Windows\System32\drivers\etc.

    Edit the file with notepad and enter the following line at the end:

    127.0.0.1 http://www.youwebsite.com

    When you do this, you are overriding the DNS and pointing your domain to your computer. This applies to your computer only. Do the changes etc, and delete the entry once done.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.