Redirect visitor on 404 Not Found using CPanel on cyon
Posted in Web
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!
awesome post. thanks
`Really gud information thanks alot
thanks a lot
your website is very good