/ Published in: PHP
Add this in the functions.php file, in your Wordpress theme.
Expand |
Embed | Plain Text
if(!is_user_logged_in() && $pagenow != 'wp-login.php') { wp_redirect( '/comingsoon.html', 302 ); }
Comments
Subscribe to comments
You need to login to post a comment.

What if the visitor has javascript disabled?
better to do this in the php script; in functions.php file: [code] if( !isuserlogged_in() { header( 'location: http://domain.com/comingsoont.html'); } [/code]
Thanks leond, I actually really like that idea. Not sure why I didn't do that to begin with.