31 Aug
2001
31 Aug
'01
20:21
On Friday 31 August 2001 4:18 pm, Tony White wrote:
Hi Felipe,
One thought - ANY file not on your server will generate a '404 not found' which you can redirect to an error page. You could run a cgi - perl, whatever, to parse the filename and then generate/display any page of your choice. Just an idea... Any better solution anybody?
That's right, use .htaccess to define the error page - a different one in each directory if you like: ErrorDocument 404 http://www.yoursite.com/custom_page.html. However, I don't believe that the orginal request information is retained in the server variables as it's over written by the request in .htaccess. Certainly in PHP the GLOBAL variables only refer the custom_page.html. M