WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Login page Url redirect not working

[Resolved] Login page Url redirect not working

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Daniel Bachhuber
    Participant

    @danielbachhuber

    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;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Login page Url redirect not working’ is closed to new replies.