Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,857
- How-to & Troubleshooting
- 128,894
- Creating & Extending
- 25,737
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,132
-
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….
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS