Home » Htaccess Tools » Htaccess Questions  » 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
Previous Topic:Problem while blocking file access
Next Topic:redirect from domain.com/sub/(anyname)
Goto Forum:
  


Current Time: Sat Jul 31 06:27:25 CEST 2010

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