UPDATE: Macro now has the option to check the HTTP_REFERER, which makes it possible redirect only once a visit.
Macro for redirecting certain groups to another page.
One of our clients use it for their welcome page. Visitors get a generic welcome page, registered users a customized personal page.
USAGE
^RedirectGroup(Registered Users,/mypage);
This redirect all registered users to /mypage
^RedirectGroup(Registered Users,/mypage, check_referer);
This redirects all registered users who weren't on the site already to /mypage.
Note 1#: Put this macro in the Page Meta Tags section.
Note 2#: The macro works only when Admin mode is switched off.
Note 3#: When using check_referer make sure page caching is switched off otherwise it won't work.
Note 4#: When check_referer is on, the macro redirects only one time a visit.
INSTALLATION
Place RedirectGroup.pm in your
directory, add RedirectGroup => RedirectGroup, \
to the macros section of
and restart your webserver.