PDA

View Full Version : REQUEST_URI and HTTP_REFERER help, please


fredwing
4-20-05, 07:27 PM
I have a 404.shtml file that is used when a file can't be found. I want to know where the request came from and what they were actually looking for. It was my intent to use REQUEST_URI and HTTP_REFERER to get the information. The actual code is:

I'm really sorry you have landed here. Must be sawdust in the system. The page you have requested, <#echo var="REQUEST_URI">, can not be found.

Looks like you got here from <#echo var="HTTP_REFERER">.

Unfortunately, that is exactly what comes up on the screen - exactly.

What am I doing wrong, here?????

Thanks in advance for any help any of y'all might be able to give.

fred

B&T
4-20-05, 08:55 PM
Try this one:
http://tips.prettyworthless.com/?tip=not_found#tip
Or use it as a model.