Drupal .htaccess and password protecting folders (401 and 404 problem)

http://www.thesitewizard.com/apache/access-non-drupal-folders.shtml

I was trying to password protect a subfolder of this website (nevermind which one). The problem was it kept giving the Drupal 404 error (The page you requested was not found.). The solution is to specify a 401 ErrorDocument line:

ErrorDocument 401 401.html

and create that file (touch 401.html).

That fixed it.

Your rating: None Average: 1 (1 vote)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Awesome!

This was driving me crazy! Thanks for the simple solution.

William Byrd

[url=http://38t56ubsacsxfz3b.com/]h2n2pnmh894yym9o[/url] [link=http://17wina65b05x6vc3.com/]oddrfzfnghnvoij9[/link] uwt5cd86ez45w33g http://3zg5j2iomkuhz8it.com/

Yolanda Gregory

[url=http://38t56ubsacsxfz3b.com/]h2n2pnmh894yym9o[/url] [link=http://17wina65b05x6vc3.com/]oddrfzfnghnvoij9[/link] uwt5cd86ez45w33g http://3zg5j2iomkuhz8it.com/

Brett Goodwin

[url=http://38t56ubsacsxfz3b.com/]h2n2pnmh894yym9o[/url] [link=http://17wina65b05x6vc3.com/]oddrfzfnghnvoij9[/link] uwt5cd86ez45w33g http://3zg5j2iomkuhz8it.com/

Post new comment

The content of this field is kept private and will not be shown publicly.