Custom Error Pages

Personalise your error pages with htaccess

.htaccess

List of Error Pages

Client Request Errors
  1. 400 — Bad Request
  2. 401 — Authorization Required
  3. 402 — Payment Required (not used yet)
  4. 403 — Forbidden
  5. 404 — Not Found
  6. 405 — Method Not Allowed
  7. 406 — Not Acceptable (encoding)
  8. 407 — Proxy Authentication Required
  9. 408 — Request Timed Out
  10. 409 — Conflicting Request
  11. 410 — Gone
  12. 411 — Content Length Required
  13. 412 — Precondition Failed
  14. 413 — Request Entity Too Long
  15. 414 — Request URI Too Long
  16. 415 — Unsupported Media Type
.
Server Errors
  1. 500 — Internal Server Error
  2. 501 — Not Implemented
  3. 502 — Bad Gateway
  4. 503 — Service Unavailable
  5. 504 — Gateway Timeout
  6. 505 — HTTP Version Not Supported

Re-direct to your custom Error page using .htaccess

The following redirects The Client Request "Forbidden" error to the forbid.html document. You must first create your forbid.html custom error page and upload it otherwise you will see the 404 not found generic error page




ErrorDocument 403 https://www.yourwebsite.com/errors/forbid.html



Only allow certain users to view your website or web directory by using .htaccess

Click Here

 

 

Please share if you find the content useful - thank you

Master Template World

Contact

Master Template Forum Robot

FORUM

Have a comment or something to say?
Say it here…

[privacy policy]