401 and 404 error pages?? - Post ID...

User 358530 Photo


Registered User
50 posts

Site in question: http://www.cofchristknoxville.org

I've got the 404 error (Page not found) working, but I can't seem to get the 401 (Not authorized) to work.

There are 2 password protected folders on the site, "Member's Area" and "Priesthood Area." I would think that if someone entered bad info when asked for username and/or password that the 401 page should be displayed, but it is not. Ideas?? Here is the entries in my .htaccess file:



But when one enters bad data I still get the generic page and not the 401.html page???

Ideas???
User 364143 Photo


Guest
5,410 posts

Did you specify in an htaccess file to use the 401 error page? Let's see your htaccess code.
CoffeeCup... Yeah, they are the best!
User 358530 Photo


Registered User
50 posts

HiYa Tom,

Here is my htaccess file:
<Files .htaccess>
order allow,deny
deny from all
</Files>

IndexIgnore */*

RewriteCond %{HTTP_USER_AGENT} Wget [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR]
RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR]
RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ExtractorPro
RewriteRule ^.*$ X.html [L]

ErrorDocument 401 http://www.cofchristknoxville.org/401.html
ErrorDocument 404 http://www.cofchristknoxville.org/404.html

XBitHack On

User 364143 Photo


Guest
5,410 posts

Try using a local document path:

ErrorDocument 401 /401.html
ErrorDocument 404 /404.html

CoffeeCup... Yeah, they are the best!
User 358530 Photo


Registered User
50 posts

Thanks Tom!! That solved the problem! :D
User 364143 Photo


Guest
5,410 posts

Good to hear. :)
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.