Virtual Host Context RewriteRules

S

slawek

Guest
#1
I'm struggling with this configuration for a specific context directory:

<FilesMatch "\.(xml|phtml)$">
Deny from all
</FilesMatch>

and


<Files ~ "\.(cfg|ini|xml)$">
order allow,denydeny from all
</Files>


I have a context created like this:

/downloader/
$SERVER_ROOT/downloader/

Enable Rewrite - set to Yes

Rewrite Base - /

and rule itself which looks like that:

RewriteRule \.(cfg|ini|xml)$ - [F,NC]

and it doesn't work cause I can access

http://example.com/downloader/target.xml
 
Top