Title: Localhost/example/wp-admin redirects to live site
Last modified: August 31, 2016

---

# Localhost/example/wp-admin redirects to live site

 *  [carbonfiberswan](https://wordpress.org/support/users/carbonfiberswan/)
 * (@carbonfiberswan)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/localhostexamplewp-admin-redirects-to-live-site/)
 * Hello, and thanks in advance for any help.
 * I am attempting to make a local copy of a live WordPress site that I will be 
   doing some editing on. I have successfully localized it to the point where I 
   can navigate to localhost/mysite, but when I try to login to localhost/mysite/
   wp-admin, I get redirected to the live url. I have edited the home and siteurl
   files in wp_options to say localhost/mysite. I’ve looked through quite a few 
   forums, and went through many of the suggested fixes, but nothing has worked 
   thus far. Could someone please give me some pointers as to what I am missing?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [George](https://wordpress.org/support/users/ccto/)
 * (@ccto)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/localhostexamplewp-admin-redirects-to-live-site/#post-7353339)
 * You may try –
    [https://www.recoverwp.com/tutorial-prepare-a-testing-environment-for-your-domain/](https://www.recoverwp.com/tutorial-prepare-a-testing-environment-for-your-domain/)
 * Basically, clone your website to local, then modify the host file (c:\windows\
   system32\drivers\etc\hosts) in your desktop computer.
 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/localhostexamplewp-admin-redirects-to-live-site/#post-7353435)
 * Back up the live site with Akeeba backup and then restore on localhost with Akeeba
   kickstart.
 * It will change all the config files to work locally.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Localhost/example/wp-admin redirects to live site’ is closed to new replies.

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [redirected](https://wordpress.org/support/topic-tag/redirected/)
 * [redirecting](https://wordpress.org/support/topic-tag/redirecting/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 2 replies
 * 3 participants
 * Last reply from: [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/localhostexamplewp-admin-redirects-to-live-site/#post-7353435)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
