If you want to redirect irrespective of the page user visiting, just remove the server name checking function my_redirect() { if ( !is_user_logged_in() ) { wp_redirect( 'mybigfatsite.com/landing/' ); exit; } } add_action( 'init', 'my_redirect' );