Forums

[resolved] My online website switches to localhost when going to wp-admin?! (7 posts)

  1. knalstaaf
    Member
    Posted 3 years ago #

    I've already tried this. Didn't help.

    When I go to the online version, I get a blank page that keeps loading, and eventually putting :8888 after the url (www.domain.com:8888/). When I try to acces the wp-admin, I get redirected to my localhost (http://localhost:8888/)?

    I can't believe it! What is that?

  2. knalstaaf
    Member
    Posted 3 years ago #

    Ok, I locally changed the url of the website and blog in the settings-page of the admin. Now I can't access my local admin, it doesn't recognize my password.

    ... great.

  3. knalstaaf
    Member
    Posted 3 years ago #

    Fantastic, after even changing the pw manually in phpmyadmin (md5), I STILL can't access, locally nor online.

    Moreover: it makes this strange kind of url: http://www.domain.com/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%3A8888%2Fdomain%2Fwp-admin%2F

    How crazy is that? Does this mean I lost, hold on, EVERYTHING?

  4. knalstaaf
    Member
    Posted 3 years ago #

    OK, luckily I've made a healthy back up before I uploaded everything.

    I opened the SQL-file and find/replaced all the localhost-parts to http://www.domain.com.

    Now everything seems to work. Don't have a back-up? Bad news, unless you can still modify it in the online phpmyadmin.

    I suppose I shouldn't have put the localhost-address in the settings page (as website and blog-url) while the site was still local back then, although that makes sense in a way.

  5. innyvinny
    Member
    Posted 3 years ago #

    I did the same thing on my wp.com blog...now I can't long in to the wp.org admin site. Can anyone help?

  6. innyvinny
    Member
    Posted 3 years ago #

    Never mind. Here's the vid in case anyone else runs into the problem

    http://educhalk.org/blog/?p=68

  7. Omniscient3
    Member
    Posted 2 years ago #

    Thanks Innyvinny. That video also fixed a different but similar issue for me. I actually needed to change that value in the settings page from "localhost" to the actual url. That video also gave the information I needed in case I messed up typing in the correct url, which thankfully I did not do.

    If anyone else is curious why I needed to do that, it's because my wordpress site was not loading on any other computer other than the web server.

Topic Closed

This topic has been closed to new replies.

About this Topic