spewn
Programmer
- May 7, 2001
- 1,034
i have a site that is getting page 404's because a bad url is trying to be accessed.
i'm tasked with finding the page that is trying to be requested.
i tried to do this right from the perl file that 404's get redirected to, but it seems that the environmental variables are being "lost" in the redirect from htaccess.
so i tried getting the request_uri from htaccess and pass to perl:
which is what i got off the web, but it passes "%{REQUEST_URI}" literally, instead of the actual uri.
i don't know if i'm accessing incorrectly.
any ideas?
- g
i'm tasked with finding the page that is trying to be requested.
i tried to do this right from the perl file that 404's get redirected to, but it seems that the environmental variables are being "lost" in the redirect from htaccess.
so i tried getting the request_uri from htaccess and pass to perl:
Code:
ErrorDocument 404 [URL unfurl="true"]http://palmresearch.com/page-not-found.pl?u=%{REQUEST_URI}[/URL]
which is what i got off the web, but it passes "%{REQUEST_URI}" literally, instead of the actual uri.
i don't know if i'm accessing incorrectly.
any ideas?
- g