[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Passing HTTP_REFERER to a custom 404 page?



Hey,

I use PHP only. But I also use an .htaccess file with this:

AddType application/x-httpd-php3 .php
ErrorDocument 404 /redir.php3

once it errors out the redir.php3 file pulls all info from the referring url
and loads the info from the database.

I would imagine you could do the same with ASP.  I couldn't image why you'd
want to use asp though hehe.

chuck


Pretty much because I'm an ASP programmer, Chuck.  I prefer JavaScript over
VBScript, too.  (That should p*ss off the MS evangelists)... :)

I appreciate the ideas - what server variables do you use to 'pull all the
info from the referring url'?  I've gotten far enough to call the
appropriate page (404.asp) and to get it to dump all the headers at that
point (so I know that ASP is being invoked properly in the 404 page), but
what I'm (obviously) missing is the variable that contains the referrer.

Jay