[thelist] Content Negotiation...
Marty Landman
marty at face2interface.com
Thu Feb 8 08:24:31 CST 2001
At 05:34 AM 2/8/01, you wrote:
>I've got an idea that maybe the 404 page could become a content negotiation
>app
>It works just as well with any type of file
>http://www.w3.org/Icons/w3c_main
>http://www.w3.org/Icons/w3c_main.gif
>
>It should be reasonably simple to replicate, it's just a lot of file.exist
>statements. But is that all there is to it?
I've thought of the same thing. You can use .htaccess on Apache to redirect
404 errors to a program. That program can then just do
for(qw(html htm shtml gif etc...)) {$redirect = $ENV{'REQUEST_URI'}.$_
if -e "$ENV{'REQUEST_URI'}.$_"}
Hope this helps,
Marty
More information about the thelist
mailing list