Forum Moderators: coopster & phranque

Message Too Old, No Replies

Environment Variables for 404 Redirect

perl environment variables 404 redirect

         

hooperleed

1:17 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



I've got a perl script to handle 404s but I need to know the filename of the page that triggered the 404 (the missing resource)

the ENV['REQUEST_URI'] returns the address of the 404script.

Basically I want to make it look like that file is there by generating the page on the fly and returning a 200 header, but I need to know which file to generate.

Any help would be appreciated.

Cheers,

lee

lexipixel

7:37 pm on Jul 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This might help...

#
$ENV{'REDIRECT_QUERY_STRING'};
#
#