Forum Moderators: phranque

Message Too Old, No Replies

How to allow ALL in a specific directory?

         

DKDiveDude

9:45 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



In my Root, I have an .htaccess file that sets the overall tone of my site.

However I have one directory with some banners I would like everybody to gain access to.

How do I turn on access to all files with an .htaccess?

jdMorgan

11:58 pm on Dec 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The directive you're looking for here is Satisfy any. Use it with Allow and Require to allow access either by password authorization or by location.

You may also have to use SetEnvIf to test Request_URI to enable Allow to take a location instead of a Remote Address, etc.

There is a tutorial on the Apache web site dealing with authorization, and also several recent post [webmasterworld.com]s here dealing with the issue you're interested in.

Jim