How to redirect a page without losing HTTP_REFERER
Posted on 1997-10-31
How can I redirect a web-browser from
one HTML page to another HTML page
without losing the environment
Usually, if I use
<meta http-equiv=REFRESH CONTENT="1; ...">,
the environment variable HTTP_REFERER
will be gone when it gets to the second
page. So, it's not an option.
What I mean by "without losing HTTP_REFERER"
Suppose aaa.html has a pointer to bbb.html .
Now, I want those people trying to access
bbb.html to be automatically forwarded to
ccc.shtml with HTTP_REFERER still being
That is to say,
aaa.html --1--> bbb.html ---2---> ccc.shtml
1: a link from aaa.html to bbb.html
when people follow the link,
HTTP_REFERER = aaa.html
2. automatic redirect from bbb.html
to ccc.shtml with HTTP_REFERER
still being aaa.html so I can capture
it using server side include.
Can anybody please help me?
Thanks in advance.