• Resolved rolfhuiber

    (@rolfhuiber)


    Using v 1.5.5

    The redirect from wp-login.php does not work.

    Adapting the code, redirection works:

    
    private function wp_template_loader() {
    
    	global $pagenow;
    
    	$pagenow = 'index.php';
    
    	if ( ! defined( 'WP_USE_THEMES' ) ) {
    
    		define( 'WP_USE_THEMES', true );
    
    	}
    
    	wp_safe_redirect( '/home/' );
    	#wp();
    
    	#require_once( ABSPATH . WPINC . '/template-loader.php' );
    
    	die;
    
    }
    

    I removed all other plugins, why is it not working?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    No problem for me, wp-login.php return 404

    Thread Starter rolfhuiber

    (@rolfhuiber)

    Redirection url, Redirect URL when someone tries to access the wp-login.php page and the wp-admin directory while not logged in.

    For example when set to ‘/”home”/’.

    For /wp-admin/, HTTP/302 and redirect to ‘/home/’.

    But for /wp-login.php it is not working, HTTP/404, it does not redirect, it shows ‘Oops! That page can’t be found.’
    The behavior is the same when providing an unknown URI, e.g. ‘/notexisting/’.

    Access your backend (in case, deactivate the plugin by changing its folder name through file manager and once your in reactivate the plugin) and save the permalinks. I solved the same issue in two different wordpress. Never had issues before last WPS HL update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirection not working’ is closed to new replies.