Jump to content

Recommended Posts

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...