Principle[edit | edit source]
In order to protect a directory in particular (and its subdirectories), it suffices to place a file called
.htaccess inside. Apache will instantly apply its rules after, only in this tree structure. The syntax is the same as the general vhost rules (eg: URL rewriting or protection), unless it will only affect the .htaccess directory (so no
Attention: the Windows explorer doesn't allow to name some files beginning by a dot, but a text editor is able to save as .htaccess.
Installation[edit | edit source]
To authorize the .htaccess in the site .conf, use
To forbid them: