Forum Moderators: phranque

Message Too Old, No Replies

Directory access restriction with mod_rewrite

         

johnbrown

2:47 pm on Dec 27, 2005 (gmt 0)



Hi,

I would like to restrict access to /mms/ directory in my webserver beacuse this directory is document root for another subdomain.

How would you recommend to use RewriteRule with [F] parameter to block access for all users and robots?

Thanks in advance

skinter

7:12 pm on Dec 27, 2005 (gmt 0)

10+ Year Member



I might be wrong, and I haven't tested this, but I think it \should\ work.

RewriteRule ^/mms?/$ /error-docs/403.html [L]