Custom 404 error page

Head Surfer
October 10th, 2008

To create a custom 404 page you must first create a .htaccess file in your public web folder.

Create a .htaccess file in your public web folder.
Then place this in the .htaccess file – this is the only line of code to be placed in it

ErrorDocument 404

Then the error 404 would go to the page file.html – similarly for creating a custom 403 error page you would do the same thing.

ErrorDocument 403

How To Host A Website is a Web Hosting Review service. We provide web hosting reviews for best hosting, server hosting, cheap hosting and more as we answer the most important website hosting question - How To Host Website pages successfully.

Words visitors used that found this page online:

Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We are independently owned and the opinions expressed here are our own. Please contact us if you would like your web hosting company considered for a web hosting and support review.
Back to top Copyright 2012 © How To Host A Website, An OS Hosting, LLC Company