• Resolved clain

    (@clain)


    Here is the situation.

    Accessing mysite.com/wp-login.php or mysite.com/wp-admin will redirect to http://127.0.0.1

    I tried searching the database for 127.0.0.1 I was unable to find one , site url and home url are the same as my site address.

    Disabled all plugins by renaming the plugins folder.

    Removed .htaccess and did all the stuff that I fond on forums. Nothing worked

    Please Help its panic and frustrating.

Viewing 15 replies - 1 through 15 (of 16 total)
  • have you always had this problem?

    have you also activated the default WordPress theme?

    can you supply a link to your site?

    (have you searched for localhost, which defaults to 127.0.0.1 as its ip-address)

    Thread Starter clain

    (@clain)

    The site is letgoltsmethod.com

    Nope I have not activated default wordpress theme.

    I tried downloading the entire site and it worked perfectly on my local host.

    I cannot change the theme to default theme as the site is live.

    There is no reference for localhost as well.

    Have you contacted your webhost?

    read this previous topic:
    [resolved] All blogs wp-login.php redirecting to localhost

    Thread Starter clain

    (@clain)

    I just figured out that, My hosting provider has blocked access to wp-login.php.

    Now if I rename the file wp-login.php it shows me with the login page.

    But still it redirects to 127.0.0.1 as soon as I try to login or press enter button.

    Thread Starter clain

    (@clain)

    @mike

    Your link did not have a solution though.

    How can rename the wp-login.php and use it for login? What are the changes that need to be done for this to work.?

    Well, I would not rename wp-login.php.
    Your host should limit the access to it by ip.

    So that only your ip is allowed to access it.

    There is a plugin you could try: Rename wp-login

    Thread Starter clain

    (@clain)

    That’s Crazy,

    I have a home based internet connection and my IP is dynamic. Everytime I connect to the internet, I get a new IP provided by the ISP.

    No way it can be restricted with IP.

    Thread Starter clain

    (@clain)

    Mate,

    If ever I could login, I can install the Plugin…!! OOPs!!

    @clain, I’m trying to help.

    Its really very simple: you can hardcode a new wp-login name. If you google ‘rename wp-login.php’ you’ll find how-to’s.

    But with the next upgrade your change will revert. So that is not the answer.

    I know you can’t log in now: Ask your provider to allow you access now (you can find your present ip with http://www.whatsmyip.org/

    Then you install the plugin and if it works, you’ve solved your problem.

    Thread Starter clain

    (@clain)

    @mike … My apologies if I am being rude..

    I will take your word I am trying to rename it…

    Ok, my preferred solutions would be asking your provider for access, but whatever solution works best for you goes.

    Best of luck and let us know what worked!

    Thread Starter clain

    (@clain)

    Actually there is a work around.

    Rename your wp-login.php to say logmein.php.

    Now once the login screen appears, using “Firebug” find the <form> tag and modify the action=”wp-login.php” to action=”logmein.php”.

    Do the Login It works fine.

    Alternatively you can edit this line on and change it to logmein.php

    <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">

    But when you update the wordpress do not forget to update this as well.

    Glad you got in!

    Thread Starter clain

    (@clain)

    @mike

    many thanks mate …!! I am gonna try the plugin now.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘wp-login.php redirects to http://127.0.0.1’ is closed to new replies.