• I built my site using localhost on my mac with MAMP. Everything was running smoothly, then when I uploaded the site to my host server, it kept redirecting to my localhost. I tried going into the settings in my uploaded site and putting in my domain URL in place of localhost, but still no go and it wouldn’t let me log in any more. Finally I deleted the files from my remote host server and replaced it with the backup of my old site.
    Now here’s where it gets REALLY weird.
    Now, when I try to go to http://localhost/wp-admin though my browser, it redirects to my domain name, and I can’t even log in to my local wordpress site even though no settings were changed in that forlder. What gives!! How can I get the local host to STOP redirecting to my domain name AND once I get back to where I was, how do I upload the site and redirect to the correct path? Soooo confused!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • It is extremely easy to accidentally make a change in WordPress “on the wrong site” when the URLs are wrong in the WordPress database.

    Using phpMyAdmin, go into EACH of your databases (localhost and your “real” web site) and check the wp_options table values of “home” and “siteurl”.

    Thread Starter davesink

    (@davesink)

    Woohoo! Many thanks, adiant. It worked like a charm. My site is now up and running:

    http://davesink.com/

    Great to hear!

    Thread Starter davesink

    (@davesink)

    OK now it’s acting up again. My site is up and running fine. However there was a theme update and I wanted to change some things. I uploaded the updated theme to my local root folder and tried to log in to localhost/wp-admin, but it redirects me to my website again. I went into MAMP start page/phpMyAdmin and checked the wp_options table values for home and siteurl. Both are set to http://localhost.
    I thought I had this figured out, but it seems to have recurred. Any help is greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help!! Weird redirect problem.’ is closed to new replies.