Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 32807
  • Last Modified:

redirect with 404.shml file

Is there a simple way to redirecr a page whena 404 error is found, using cpanel?
0
robrodp
Asked:
robrodp
1 Solution
 
arnoldCommented:
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
0
 
robrodpAuthor Commented:
Got it... thx
0
 
RedLondonCommented:
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now