Custom Error Pages
Personalise your error pages with htaccess
.htaccess
List of Error Pages
Client Request Errors
- 400 — Bad Request
- 401 — Authorization Required
- 402 — Payment Required (not used yet)
- 403 — Forbidden
- 404 — Not Found
- 405 — Method Not Allowed
- 406 — Not Acceptable (encoding)
- 407 — Proxy Authentication Required
- 408 — Request Timed Out
- 409 — Conflicting Request
- 410 — Gone
- 411 — Content Length Required
- 412 — Precondition Failed
- 413 — Request Entity Too Long
- 414 — Request URI Too Long
- 415 — Unsupported Media Type
.
Server Errors
- 500 — Internal Server Error
- 501 — Not Implemented
- 502 — Bad Gateway
- 503 — Service Unavailable
- 504 — Gateway Timeout
- 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
Contact
[privacy policy]