How to exclude a subfolder from password protection with htaccess file

A very useful and simple to use method of protecting access to a directory or an entire account or website is by using the .htpasswd method which is covered in another article.  Sometimes though, you may want to protect a whole directory but exclude one or more sub-directories and this is also simple to do !

In the sub-directory that you want to exclude from the .htpasswd protection simple create a .htaccess file if one does not already exist and add the following line

Satisfy any

This by-passes the protection for that directory

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Related Articles

How to configure directory and file privacy

Password protection via .htaccess and .htpasswd It is possible to password protect an entire...

How to Stop Search Engines from Crawling your Website

In order for your website to be found by other people, search engine crawlers, also often known...