Need info, about .htaccess and ErrorDocument

This is a discussion on Need info, about .htaccess and ErrorDocument within the Apache Web Server forums, part of the Web Server and Related Forums category; Quick question, I have a .htaccess file, with the following designations: ErrorDocument 302 http://www... ErrorDocument 400 http://www... ErrorDocument ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2006
possibleas@gmail.com
 
Posts: n/a
Default Need info, about .htaccess and ErrorDocument

Quick question,

I have a .htaccess file, with the following designations:


ErrorDocument 302 http://www...
ErrorDocument 400 http://www...
ErrorDocument 401 http://www...
ErrorDocument 403 http://www...
ErrorDocument 404 http://www...
ErrorDocument 500 http://www...
ErrorDocument 501 http://www...


I am attempting to replace the stock error for "Authorization Required"
(i.e. This server could not verify that you are authorized to access
the document requested. Either you supplied the wrong credentials
(e.g., bad password), or your browser doesn't understand how to supply
the credentials required.)



SO, it seems in spite of the .htaccess I have above, this particular
error is not effected. I thought 401 was for authorization required.
Does anyone know how to change it, and plus am I missing any other
kinds of modifiable screens? I seem to recall a different or special
way you create unique screens for the the 401 that involved some other
steps, but cannot remember or find a solution :)

Thank you and CHEERS! :), %A%

  #2 (permalink)  
Old 11-25-2006
petersprc
 
Posts: n/a
Default Re: Need info, about .htaccess and ErrorDocument

ErrorDocument 401 /errors/401.html

401 error document must refer to a local document, not a remote URL
according to:

http://httpd.apache.org/docs/1.3/mod...#errordocument

That should cover most of the error codes. See also:

http://www.indiana.edu/~wmhome/tool_...rorcodes.shtml

possibleas@gmail.com wrote:
> Quick question,
>
> I have a .htaccess file, with the following designations:
>
>
> ErrorDocument 302 http://www...
> ErrorDocument 400 http://www...
> ErrorDocument 401 http://www...
> ErrorDocument 403 http://www...
> ErrorDocument 404 http://www...
> ErrorDocument 500 http://www...
> ErrorDocument 501 http://www...
>
>
> I am attempting to replace the stock error for "Authorization Required"
> (i.e. This server could not verify that you are authorized to access
> the document requested. Either you supplied the wrong credentials
> (e.g., bad password), or your browser doesn't understand how to supply
> the credentials required.)
>
>
>
> SO, it seems in spite of the .htaccess I have above, this particular
> error is not effected. I thought 401 was for authorization required.
> Does anyone know how to change it, and plus am I missing any other
> kinds of modifiable screens? I seem to recall a different or special
> way you create unique screens for the the 401 that involved some other
> steps, but cannot remember or find a solution :)
>
> Thank you and CHEERS! :), %A%


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0