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

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



> 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?


]Try using

] $ENV{'REDIRECT_URL'}

]Blessings
]Revd Leonard


OK, now I see where you're going - but it appears that I HAVE to use a Perl
script to do this processing.  Not being a Perl programmer (at all) how
difficult is it to create a short script that will create a redirect using a
QueryString?  For example: You type 'www.mydomain.com/fred'.  'fred' is not
found, so it redirects to the magical Perl script.  The script pulls 'fred'
from the URL, and issues a redirect to 'www.mydomain.com/vsite.asp?u=fred'.
I know this is probably write-it-in-my-sleep easy for a decent Perl
programmer, but it's beyond me.  Can anyone help?  Thanks!

Jay