Forum Moderators: phranque

Message Too Old, No Replies

.htaccess directory permissions

htaccess, permissions, directory

         

Brobs

9:44 am on Jan 12, 2009 (gmt 0)

10+ Year Member



Hi we are restricting access to a directory with htaccess


AuthName "Restricted"
AuthType Basic
<Limit GET POST>
order deny,allow
deny from all
allow from 194.70.
</Limit>

We have an admin sub-directory within the folder which we want to make accessible to the outside world, can anyone help me with this?

Thanks

jdMorgan

2:30 pm on Jan 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The easiest way would probably be to put an .htaccess file into your 'admin' subdirectory which unconditionally allows access using "allow from all".

[added] Note that the 'protected' directory is still unprotected from all HTTP methods except for GET, HEAD, and POST. You may want to use LimitExcept to further restrict access for all of the other HTTP methods. [/added]

Jim

[edited by: jdMorgan at 2:32 pm (utc) on Jan. 12, 2009]