[pmwiki-users] Directing users to the wiki homepage
eemeli at gmail.com
Thu Oct 2 14:47:09 CDT 2008
2008/10/2 Graham Archer <Graham.Archer at sun.com>:
> Is there a way I can direct users who come to the wiki through the side door
> (i.e. a previously bookmarked page) to the wiki homepage and then perhaps
> allow them to get to the original target page?
It sounds like what you actually want is to communicate the news
information to visitors entering the site at other locations than the
homepage, rather than just redirecting them to the front page.
The simple solution is to add the news to the site's sidebar, but
that'll mean it'll be shown all the time. A more elegant way of doing
this would be to read the HTTP referrer information from
$_SERVER['HTTP_REFERER'] and only display the news if that's a
location external to your site /and/ if the user doesn't have a recent
cookie from your site.
More information about the pmwiki-users