Jump to content

.htaccess url protection


libertyct

Recommended Posts

Yes of course.  Just check out the apache manual on the location directive. 

 

http://httpd.apache.org/docs/1.3/mod/core.html#location

 

You can specify your access rules inside the location.

 

thanks. but what i am looking for is password protection to a url and not protection based on a location.  something that would still use the .htpasswd file but applied to a url

Well you really didn't look at the link I provided did you?

 

The directive provides for access control by URL. It is similar to the directive, and starts a subsection which is terminated with a   directive. sections are processed in the order they appear in the configuration file, after the sections and .htaccess files are read, and after the sections.

 

Note that URLs do not have to line up with the filesystem at all, it should be emphasized that operates completely outside the filesystem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.