Htaccess unprotect certain directory

March 17, 2008

In this tutorial, we’ll have the following scenario:

We have a folder that is password protected via htaccess and within it we have another folder that we want to be accessible to the public. There are two ways for doing that. One is the hard way and another easy one. Off course we always want to do the easiest possible workaround so here it is how we do it.

In the main folder we leave the htaccess file intact protecting the whole structure. In the folder we do not want protection we just place a htaccess file with the following content:

Satisfy Any

Allow from all

And that’s it ;) You are now “public “

 

Post a comment

Name (required)

Mail (will not be published) (required)

Website

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word