Please wait while we load your page...


HTACCESS Magic :: Article :: Unpassword Protect Subdirectory

Results 1 to of

Unpassword Protect Subdirectory

The following code will "un-password protect" a subdirectory inside a password protected directory:

satisfy any

Simply add the line to a .htaccess file in the subdirectory you want to remove password protection.

Why? There can be many reasons. Recently we had a client who runs an adult paysite. For convenience and simplicity, he wanted to use the content thumbnails in the password protected members area in his front end as previews. So, we used this trick to make it possible. Note that any subdirectories of the directory that contains this .htaccess will also be open (publicly accessible ) to all. So, use with caution . You can password protect the subdirectories by coping the Auth lines from your top .htaccess file to the .htaccess in the nested subdirectory(ies). But, it is simpler to just make the directory (that you want publicly accessible in a password protected directory) not subdivided into password protected subdirectories.

Last Revised: 2015-07-01

Live Chat Not Available