This is a discussion on Blocking subdirectories by name within the Apache Web Server forums, part of the Web Server and Related Forums category; Greetings! Can I block access to all subdirectories by name in a root .htaccess file? I want to block access ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Greetings!
It worked thanks! I modified it a bit though and took out the end of line anchor. <Directory ~ "^.*\.svn"> Order allow, deny Deny from all </Directory> -Matt On Jan 22, 9:57 pm, Davide Bianchi <davideyeahs...@onlyforfun.net> wrote: > On 2007-01-22, Matthew Hauck <mattha...@gmail.com> wrote: > > > Can I block access to all subdirectories by name in a root .htaccess > > file? > > I want to block access to all ".svn" folders. I already addedSomething like > > <Directory ~ "^.*\.svn$"> > Order allow, deny > Deny from all > </Directory> > > See also the documentation for DirectoryMatch > > Davide > > -- > The best Windows accelerator is that which works at 9.81 m/s2 > -- From a Slashdot.org post |