[TuT] Custom Error Pages with Apache
Welcome to my first Coders Paradise guide. This is about creating custom error pages with Apache.
Information about Status Codes: HTTP/1.1: Status Code Definitions
In this tutorial I will be showing you how to be creating error pages for the following: 400, 401, 403, 404, 500.
You can find what these mean at second post. ;)
10.4.1 400 Bad Request
10.4.2 401 Unauthorized
10.4.4 403 Forbidden
10.4.5 404 Not Found
10.5.1 500 Internal Server Error
Now, we simply create a file .htaccess (I have uploaded it in a .zip since Windows can not create one by default.
Now, open it up and enter the following lines:
Changing the domain and the error.php to what you what your domain is.
Now simply upload it to your host, and now when someone visits a page that cannot be found for example (404) they will get the error page you created!
Neat huh!
Comments and questions are welcome.