[thelist] 404 Error Information

s t e f stef at nota-bene.org
Sat Mar 2 04:31:00 CST 2002


[[ .jeff -- 15:57 01/03/02 -0800 ]]
>josh,
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Feingold Josh S
> >
> > Is there a way to find out what page a user was trying
> > to find and what the referring page was when they got
> > a 404 error in an IIS environment?
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
>if you're using a url 404 handler, then yes.  the page they requested is
>available in cgi.query_string.
>
>a request like this:
>
>http://www.domain.com/foo/bar/index.cfm?catid=26&sid=134590871435
>
>would result in a query string like this:
>
>404;http://www.domain.com/foo/bar/index.cfm?catid=26&sid=134590871435
>
>if you're *not* using a url 404, then i don't know of any way to find out
>what url the user was requesting.

What I do with PHP is recuperate $REQUEST_URI and from there I can either
redirect them on a guessed basis, or push the search form.

It would be as easy to log the $REQUEST_URI

hth
stef




More information about the thelist mailing list