flamey Posted June 4, 2006 Posted June 4, 2006 i need to run my perl script on 404, and other errors, instead of showing 404.shtml. how can i do it? on my previous host i was able to configure through their CP what file/script to show/run on any error condition. but in CPanel i can only see a way to edit 404.shtml for 404 error. Quote
TCH-Andy Posted June 4, 2006 Posted June 4, 2006 Welcome to the forum flamey You can add >ErrorDocument 404 /your-error-page.html to your .htaccess file to redirect the 404 error to whatever page you like. Quote
flamey Posted June 4, 2006 Author Posted June 4, 2006 ah cool! thanks for reply Andy, and thanks for welcome everyone 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.