You should follow me on Twitter.


How To Disable .htaccess Authorization for Child Directories

The problem: I have a password protected WordPress install — only a limited group of users may access its content (simple .htaccess/.htpasswd). I also need to access my WordPress stylesheet (which happens to be in a child directory of the protected environment) for an unprotected homepage though.

Traversing the directory stack, we know a more specific .htaccess overrides previous instructions, so despite reading otherwise, I knew there had to be a solution.


Allow from all
Satisfy any

That’s it. Another .htaccess, put into the child directory, featuring these two lines, allows anyone to access resources further down the directory stack — which makes for an exception of the previously defined access restrictions.


2 Tweets

Comments

  1. Quote

    Breaking: How To Disable .htaccess Authorization for Child Directories http://l.iw.io/d4iK53 #blog

    This comment was originally posted on Twitter

  2. Quote

    How To Disable .htaccess Authorization for Child Directories http://icio.us/enie5x (via @grafzahl)

    This comment was originally posted on Twitter

  3. Quote

    Awesome post, mate. Just what I was looking. I had exactly the same problem, with a WordPress installation, but the Flash-uploader didn’t work. But it does now, so perfect! Thanks a lot!

Leave a Comment

(required)

(required)

Formatting Your Comment

The following XHTML tags are available for use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

URLs are automatically converted to hyperlinks.

Additional comments powered by BackType