httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Smith <...@cursci.co.uk>
Subject Stopping rewrites from higher directories?
Date Fri, 04 Oct 1996 09:10:40 GMT
I am having a few probs with mod_rewrite because of the following
phenomena:

If I have this in the .htaccess of my top docs directory

RewriteRule ^foo\.html$ /cgi-bin/prog.pl

Then this works but it is also applied if I access any subdirectory of
docs; unless I set AllowOverride None. (presumably decause all higer
directories are consulted).

Is there some way of turning off this behaviour?  ie can I
redirect/rewrite just from particular directories and not their
subdirectories?

Thanks for any help

Michael Smith

Mime
View raw message