[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Passing HTTP_REFERER to a custom 404 page?
- Subject: [cobalt-users] Passing HTTP_REFERER to a custom 404 page?
- From: "Jay Fesco" <jay@xxxxxxxxxxxx>
- Date: Sun May 6 22:38:10 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
[This is a repost - anyone have any ideas? - Jay]
Gurus,
I've read through the archives on 404 as much as my patience would allow,
but I don't find a specific answer to my question.
I need to be able to find out exactly what someone typed to get to my custom
404 page.
I have updated /etc/httpd/conf/httpd.conf for the site in question, and I
have it properly going to my custom page, '404.asp'.
For the project at hand, I need to emulate a (non-existant) directory. For
example, you type 'www.mydomain.com/fred'. There is no 'fred' directory at
'mydomain', but by using 'fred', I can pull the appropriate record from a
table in MySQL and deliver a 'virtual' page. This is intended to be a
hands-off database driven site, and I'd rather stay away from the FileSystem
object for this project. SOOOOoooo...
I've tried to pull Request.ServerVariables("HTTP_REFERER"), but it comes
back blank after the redirect to 404.asp. I pulled ALL_HTTP as well, but I
didn't see anything indicating that the 404.asp page had any idea of where
it came from (other than the Session variable and the Host). And yes, I'm
using a relative reference (/404.asp, not http://www.mydomain.com/404.asp).
Any ideas or things I've missed?
Thanks!
Jay Fesco