Hi,
I used mod_rewrite to redirect script(s) to go through a wrapper as below:
RewriteRule ^/cgi-bin/1/(.*) /cgi-bin/cgiwrapper/1/$1 [L,P]
However, when a 404 request come in for a non-existent script under /cgi-bin/1, it is being passed onto the wrapper and the wrapper is not able to handle such request. I was trying to block the 404 request going through the wrapper by adding rewrite condition as below:
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^/cgi-bin/1/(.*) /cgi-bin/cgiwrapper/1/$1 [L,P]
This rule is not working.. Any pointers where I am doing wrong?
Thanks,
-sudobash