how to make a custom 401 page?

  • assneck
  • Graduate
  • Graduate
  • User avatar
  • Posts: 195
  • Loc: seattle, wa

Post 3+ Months Ago

how do i make a custom 401 authorization required page instead of just having the standard one? does anyone know? thanks

assneck
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Put something like the following in your .htaccess file and then make some .html pages in the locations you specify which describe the error in your custom way:

Code: [ Select ]
ErrorDocument 401 /401.html
ErrorDocument 403 http://www.yoursite.com/401.html
ErrorDocument 404 http://www.yoursite.com/404.html
ErrorDocument 500 http://www.yoursite.com/500.html
  1. ErrorDocument 401 /401.html
  2. ErrorDocument 403 http://www.yoursite.com/401.html
  3. ErrorDocument 404 http://www.yoursite.com/404.html
  4. ErrorDocument 500 http://www.yoursite.com/500.html


*Note you can either include the domain like I did with the last 3 lines, or you can do it like I did the first line if you wish to leave out the domain.
  • assneck
  • Graduate
  • Graduate
  • User avatar
  • Posts: 195
  • Loc: seattle, wa

Post 3+ Months Ago

thank u sir, worked nice

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 15 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.