Removing .htaccess Authentication Restrictions
Removing .htaccess Authentication Restrictions
Have you ever found yourself needing to remove authentication from part of a website? This actually happens fairly regularly. The way you do it is as follows:
.htaccess
AuthType none Satisfy Any
The AuthType none directive indicates apache should not prompt for a password, whilst the Satisfy Any directive tells apache that is can now use other methods to authenticate the user. You may also have to add:
Order Deny, Allow Allow from All
Which tells apache everyone is allowed to access the page.
Hristo Dimitrov said,
Thanks a lot! Very usefull.
Add A Comment