redirect with 404.shml file

robrodp
robrodp used Ask the Experts™
on
Is there a simple way to redirecr a page whena 404 error is found, using cpanel?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017
Commented:
You need to use/setup a custom errors in the config of the web server.

Presumably this is an Apache web server?

ERRORDOCUMENT error document or url to open
ErrorDocument 404 http://somesite

http://httpd.apache.org/docs/2.2/custom-error.html
robrodpProgrammer

Author

Commented:
Got it... thx
I realise the question is closed but the question was "using cPanel".  Yes.  cPanel tries to serve the file /404.shtml by default, but usually gives a plain error 500 page saying that it had a 404, failed to find either 404.shtml or 500.shtml.

The cPanel page at https://YOURSERVER.com:2083/frontend/x3/err/index.html lets you enter text to display as 404.shtml, 500.shtml and the others.

Obviously creating/editing a .htaccess file isn't hard, but it is beyond a lot of people.  Using that cPanel page shouldn't be beyond many, certainly not any of the people who would know to worry about that kind of thing.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial