WordPress.org

Ready to get started?Download WordPress

Forums

Safe Redirect Manager
[resolved] Login page Url redirect not working (2 posts)

  1. jjgoody
    Member
    Posted 1 year ago #

    I want to redirect wordpress login page to the login page that is offered by my theme. (Cuz I don't want to reveal it is WordPress site.)

    So,

    • 1. I installed Safe Redirect.
    • 2. Created a rule that redirects from [/wp-login.php] to [/?page_id=38].
    • 3. The result is Still the same.(my login url "http://espresso.balsangplus.net/wp-login.php)

    http://wordpress.org/extend/plugins/safe-redirect-manager/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Safe Redirect Manager doesn't really support this use case. Instead, you could add something like the following to your theme's functions.php:

    add_action( 'init', 'dbx_redirect_login' );
    function dbx_redirect_login() {
    
        if ( 'wp-login.php' != $_SERVER['REQUEST_URI'] )
             return;
    
        wp_safe_redirect( '/?page_id=38' );
        exit;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.