AUTO-FORWARDING
I'll put this out there for those of you who want to send users to the real forum page and spiders to the archive. I hope you don't get banned for link cloaking... see my last post.
PHP Code:
$homeurl="yourdomain.com";
if ((!stristr(getenv(HTTP_REFERER),$homeURL)) or (strlen(getenv(HTTP_REFERER)) < 1)) {
header("location:http://www.$homeurl/forum/showthread.php?threadid=$thread[threadid]");
}
It checks if the referrer page is on your domain. If it's not, they obviously came in from somewhere else (ie, search results), so get out of the archive and on to the real thread.