httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Posts" <po...@2-tiersoftware.com>
Subject [users@httpd] Rewrite missing file requests to script
Date Tue, 25 Mar 2003 05:06:53 GMT
Hi, I'm using Apache 1.3.27.
 
I need to send requests for dir/files that don't exist in/off the root
to a set script file in the root. 
 
So incoming request ( /bobo.pdf ) should be checked if it exists (?:
RewriteCond %{REQUEST_FILENAME} !-f), and if it doesn't then rewrite the
filename to ( /getit.php?filename=/bobo.pdf ).
 
Similarly, ( /subdir/bobo.pdf ) should go to (
/getit.php?filename=/subdir/bobo.pdf ).
 
Any tips or URL's to archive posts is appreciated.
 
Thanks,
Kawika

Mime
View raw message