.
My custom 404 page
Copy this to a blank PLAIN TEXT file named 404
the file will become a html file but it should only be edited with text editor. If you try to edit it with creator it may be corrupted
ENTER THE DEFAULT URL
FOR NO REFERER
<html><head><title>ERROR 404:<xt id="url" type="path"/> NO SUCH FILE </title><meta name="robots" content="noindex, follow"><script type="text/javascript"> var url ='<xt id="referer" default="/index"/>';var retred; if(url =="/index") {var retred = "redirected"} else { var retred = "returned"} ; alert('\n ERROR PAGE\n \nERROR 404 FILE NOT FOUND\nThe file <xt id="url" type="path"/> does not exist\nYou have been '+retred+' to\n'+url+'\n');location.href = url;</script><noscript><meta http-equiv="refresh" content='2;url=<xt id="referer" default="/index" />' /></noscript></head><body style="display:none"><!-- ©XTIPS 2010--><div align="center">ERROR 404 <br /><xt id="url" type="path"/><br />DOES NOT EXIST<br/><a href='<xt id="referer" default="/index"/>'>CLICK HERE</a></div></body></html>
this uses javascript alert . "url" and "referer" Xt functions. It uses the page title and meta refresh for non js browsers and a link for really old browsers
Test MY 404 page
http://xtips.mobi/nofolder/nofile
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Log in