Requiring password on all pages on a website, except one

Posted on

Requiring password on all pages on a website, except one – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about apache-2.2, .htaccess, , , .

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

Solution :

Try this:

<Files "/upload/add_image">
Allow from all
Satisfy Any
</Files>

Leave a Reply

Your email address will not be published.