How to exclude a subfolder from password protection with .htaccess

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 Users Found This Useful
Was this answer helpful?

Related Articles

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...