Knowledgebase: Web Hosting Related
How do I fix a 401 error for a password protected directory?
Posted by Support on 02 May 2013 08:29 AM

How do I fix an error that occurs when trying to do a redirect on your home page, but a password protected directory comes up with a 401 error when trying to access the password protected directory?

To fix the problem you need to modify the ".htaccess" file that is doing the home page redirection.

Just add the following line:

RewriteCond %{ENV:REDIRECT_STATUS} !^401$

before this one:

RewriteCond %{HTTP_HOST} ^ [NC]
(1 vote(s))
Not helpful