Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,042
- How-to & Troubleshooting
- 129,692
- Creating & Extending
- 25,794
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,375
- Miscellaneous
- 9,180
-
this is an easy fix to keep non members out.
in you’re header for your member theme..
<?php if(!is_user_logged_in()){
nocache_headers();
header(“HTTP/1.1 302 Moved Temporarily”);
header(‘Location: ‘ . get_settings(‘siteurl’) . ‘/wp-signup.php?redirect_to=’ . urlencode($_SERVER[‘REQUEST_URI’]));
header(“Status: 302 Moved Temporarily”);
exit();
} ?>
make sure to put it above the <!DOCTYPE….