com693 Posted July 28, 2005 Posted July 28, 2005 Can I define somewhere to load a custom-built error page when an error is encountered? For example, when an Error 404 is encountered by a browser, I would like for the site to load my custom Error 404 page, not a generic one. Thanks. Quote
com693 Posted July 28, 2005 Author Posted July 28, 2005 Further, do I just need to copy and paste the HTML into the custom error page builder? Quote
marie b. Posted July 28, 2005 Posted July 28, 2005 (edited) Take a look here. Edited July 28, 2005 by marie b. Quote
com693 Posted July 28, 2005 Author Posted July 28, 2005 Thanks. Just wanted to confirm that there was not a way to simply direct it to an already-built page. Quote
marie b. Posted July 28, 2005 Posted July 28, 2005 You could rename the file as 404.shtml and put it in your public_html folder. Quote
com693 Posted July 28, 2005 Author Posted July 28, 2005 That did the trick, Marie - exactly what I wanted to do. Points to you! Quote
marie b. Posted July 28, 2005 Posted July 28, 2005 No problem. (Surprised I actually got something right for a change. Heh.) Quote
TweezerMan Posted July 28, 2005 Posted July 28, 2005 Thanks. Just wanted to confirm that there was not a way to simply direct it to an already-built page. <{POST_SNAPBACK}> There is - you can add the following to your .htaccess file: >ErrorDocument 404 /my-custom-404.html Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.