I have a .htaccess with authorization, that runs for all parts of an internal website. However, I need to remove the required authorization for one single location.

I've tried using <Files> and <FilesMatch> in .htaccess to set "Allow Any" for the location, but it doesn't work.

My .htaccess looks like this:

AuthName     "Who are you ?"
AuthUserFile /var/www/.htpasswd
AuthType     Basic
Require valid-user
Order deny,allow
Deny from all
Allow from 90.185.193.91
<Files "/upload/add_image">
Allow from any
</Files>
Satisfy Any
link|improve this question
feedback

1 Answer

Try this:

<Files "/upload/add_image">
Allow from all
Satisfy Any
</Files>
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.