Redirect visitor on 404 Not Found using CPanel on cyon

Some of my hostings are hosted on cyon.ch, a Swiss hosting provider. Whenever i do a redesign of a page, often the content and the associated URL’s change. So when a user comes from Google, bing, yahoo or another search engine, they often face a HTTP 404 error code – not found. Logo_Cpanel

In cyon.ch CPanel, just navigate to Domain – HTTP Fehler and choose the Error 404 (Wrong Page) template. Paste the HTML Code below in that file (it’s called 404.shtml), save it and you’re done.

Don’t forget to change the www.yoursite.com ..

<HTML>
<HEAD>
<TITLE>Meta Redirect Code</TITLE>
<meta http-equiv="refresh" content="0;url=http://www.yoursite.com/">
</HEAD>
<BODY>
<script language="javascript">
location.replace("http://www.yoursite.com/");
</script>
</BODY>
</HTML>

you can test it by entering http://www.yoursite.com/thispagedoesnotexist

if you’re getting redirected, the thing works!