View Full Version : Redirecting certain usergroups to static page
mtrac
11-28-2005, 01:05 AM
I would like to redirect most traffic to a static page, stating, basically, the site is closed for the day. Exceptions, for which the site would function normally, would be: Members of certain usergroups Search engines vB recognizes Guests referred by search engines or specific domains The site's RSS feedThe status would be checked at login time or when the cookie is recognized. I would do this one or more random days a week.
Thanks.
You have to be careful redirecting visitors and not redirecting search engines, they really hate that.
As for the redirection, its pretty easy to create conditionals to achieve what you want
For example, if you wanted to redirect everyone except admins (use global_start)
if(!is_member_of($vbulletin->userinfo, 6))
{
header("Location: http://www.coolsite.com/closed.html");
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.