Today's Messages (off)  | Unanswered Messages (on)

Forum: Htaccess Questions
 Topic: htaccess config to require authentication for all except for these URLs?
icon5.gif  htaccess config to require authentication for all except for these URLs? [message #1696] Tue, 16 February 2010 02:25
callagga  is currently offline callagga
Messages: 1
Registered: February 2010
Hi,

What is the htaccess lines/config I would require to ensure that all parts of my site (files & URLs) are protected by authentication, EXCEPT for a given limited set of URLs. For example all except "/api/.*" if this makes sense.

The actually authentication could be like the below, but it's how I wrap this in the directives...


AuthName "Dialog prompt"
AuthType Basic
AuthUserFile /home/callagga/site/.htpasswd
Require valid-user


thanks


Current Time: Thu May 17 07:52:51 CEST 2012

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software