WordPress.org

Ready to get started?Download WordPress

Forums

"wp-login.php" redirects to 404 not found (13 posts)

  1. wpa
    Member
    Posted 4 years ago #

    Today I was trying to login at wp-login.php page but it seems I can't enter the dashboard panel.

    I'm always redirected to a 404 NOT FOUND page at "[my-site.com]/login" (which page doesn't exists and therefore a 404 error is returned).

    If someone could help I would appreciate

    Thank you

    wpa

  2. alism
    Member
    Posted 4 years ago #

    What did you do immediately before it went wrong? Changed your Permalinks? Changed your blog url/wordpress url? Installed/upgraded a plugin?

  3. Also what is the URL of your blog?

  4. wpa
    Member
    Posted 4 years ago #

    Hello, and thank You for your answers.

    @alism:

    1) Since the site is in a developing phase, it was an habit for me now and then to visit the permalink page just to save the setting without changing it (I was told this could help wp working without cache issues).

    2) I didn't changed the URL of the site.

    3) Yes, I installed a plugin yesterday but in this phase it happens that I install and/or uninstall plugins, but frankly I didn't notice problems with this.

    @ Ipstenu:

    1) This is not a production site since I'm still developing/testing it locally wuth wamp/xpsp3. However I have wp installed within a subdirectory like "[my-site-domain]/name-of-subdir/".

    I tried to change the theme folder name, it didn't worked the 404 remains.

    Any hint would be appreciated. Could you tell/know how I could try just to enter dashboard?

    Thank You very much

    wpa

  5. alism
    Member
    Posted 4 years ago #

    I'm not that familiar with WAMP, so hopefully someone else will chime in here. You might want to try deleting your wordpress .htaccess file though (assuming WAMP supports that)

  6. wpa
    Member
    Posted 4 years ago #

    Hello alism, thank You.

    I tried what you suggested but now after hit the login button in wp-login.php I get an "Internal Server Error".

    Btw, this is the content of the main .htaccess file (the one within the directory where wp is installed):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /web/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /web/index.php [L]
    </IfModule>
    
    # END WordPress
  7. wpa
    Member
    Posted 4 years ago #

    @ Ipstenu, thank you.

    I tried both, and both return 404 error NOT FOUND.

    From wp-login.php page I am redirected to a bogus "[my-site-domain]/login" page (this structure imitates the navigation toolbar URL I see when redirected)

    While from "wp-admin" I am redirected to "http://[my-site-domain]/wp-subdir/login?redirect_to=http%3A%2F%2F[my-site-domain]%2Fwp-subdir%2Fwp-admin%2F"

    So that I can't login and enter the dashboard.

    wpa

  8. wpa
    Member
    Posted 4 years ago #

    Anyone never experienced the issue to be redirected after login to a non-existent page?

    I want to disable all my plugins from within phpMyAdmin (since I can't enter dashboard), is that possible? And if it is, how?

    I just would like to investigate if the redirection problem i'm experiencing is due to some plugin I have installed.

    wpa

  9. wpa
    Member
    Posted 4 years ago #

    I solved my problem, I post what I did for the record:

    1. in the "wp-content" folder I changed the name of the "plugins" folder to "plugins.off" (whichever name would be fine)
    2. I logged at "[my-site-domain]/wp-login.php" but this time without to be redirected, so that I was able to enter the dashboard
    3. I renamed back to "plugins" the "plugin.off" folder name (see step 1)
    4. within "Dashboard > Plugin" I reactivated all the plugins that were active before I experienced the issue of being redirected at login, all but one plugin which I think could be the culprit of the problem.
    5. logged-out and relogged-in, just to verify that the redirections disappeared.

    Thank You

    bye

    wpa

  10. zahed_1
    Member
    Posted 3 years ago #

    OPS I have a similar issue but this doesnt solve anything for me :(

    Please help..

  11. happyches
    Member
    Posted 3 years ago #

    I had same issue, your suggestion got me in to fix, but am yet to be able to re-activate many of my plugins. Activated some and am just dealing with the fact that I wont be able to use anymore, which is odd, but too tired to deal with it now.

  12. Tara
    Member
    Posted 3 years ago #

    @zahed_1, have you tried loging to http://www.yourdomain.com/wp-login.php (please replace 'yourdomain.com' with your actual domain name and extension).

    If that does not work, have a read of this codex guide:
    http://codex.wordpress.org/Login_Trouble

Topic Closed

This topic has been closed to new replies.

About this Topic