Quick note for WordPress users with .htaccess-protected subdirectories

If your .htaccess password-protected directories “above” a wordpress install are not working correctly, there is potentially a problem with the webserver searching for a 401 error document and not finding it, thus passing control on to the wordpress catchall RewriteRule.

Try adding in the following line BEFORE the #BEGIN WordPress line:

ErrorDocument 401 /401_error.html

After a few hours of frustration, I didn’t actually believe that this would work, but it did!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">