• Hi,

    I had Theme My Login plugin activated
    I had to deactivate it
    AFTER I deactivated it, it still redirects the standard WP log in URL:
    /wp-login.php
    To:
    /login/
    Which brings you to a page which was created by the plugin and now shows:

    Log In

    [theme-my-login]

    Ie after deactivating the plugin there is NO WAY to reach the default WP login page at /wp-login.php

    I reactivated the plugin to see if I could undo the redirection and could not.

    This is a huge issue for me – please help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • SAME! I am locked out, let me know if you get it fixed!

    For me I am able to get to /wp-login.php but once i provide credentials page goes blank and i cannot proceed. I try /wp-admin/ but it won’t go. I’ve renamed my plugins folder

    • This reply was modified 6 years, 9 months ago by davepearson86.
    Thread Starter ironfish2

    (@ironfish2)

    After hours of searching and trying I ended up putting a quick function in functions.php to redirect to another login page. However, I dont know how to redirect to the default login page, which you may need, so I am not sure that will help.

    Here is the example I used:

    http://www.hongkiat.com/blog/wordpress-custom-loginpage/

    code:

    function redirect_login_page() {
    	$login_page  = home_url( '/login/' );
    	$page_viewed = basename($_SERVER['REQUEST_URI']);
    
    	if( $page_viewed == "wp-login.php" && $_SERVER['REQUEST_METHOD'] == 'GET') {
    		wp_redirect($login_page);
    		exit;
    	}
    }
    add_action('init','redirect_login_page');

    I hope that helps.

    I am only a user not the developer of the plugin so I don’t think I can help you further.

    If this does not work maybe a good search on Goog should find something….

    @ironfish2

    Have you tried /wp-admin ? That worked for me when I got locked out.

    Thread Starter ironfish2

    (@ironfish2)

    Thanks for the help petunia53.

    I ended up writing my own plugin to create a front end login form so that I can correct any issues right away and so I have handled the issue that way.

    But I do appreciate your time and effort to help.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    This is not even possible. If the plugin is deactivated, the code is no longer running. Perhaps the pages were cached?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin still redirects away from WP default login URL after deactivation’ is closed to new replies.