mod rewrite redirect - semi complicated
Hi All,I've been trying to figure out how to accomplish a specific type of redirect using htaccess, modrewrite, etc.
Here's the story in a nutshell:
I run a forum. In the forum I post threads which, when clicked, automatically redirect to static html pages located elsewhere on my site.
What I'm trying to set up is a system that checks to make sure that a viewer is coming from the forum thread, and not linking to the page directly, or basically not coming from anywhere else. I only want people following the thread links to be able to access the end pages, and I want to redirect everyone else to a different page (like a "Hey, stop trying to bypass the system" kind of page)
Where it gets a little complicated is that my forum software sometimes sticks on session tags to URLs, so that when you browse around the forum, the URL in the browswer has all the session info in it. I don't know how to deal with this.
Can anyone help?
Thanks in advance.