404 Error

If page not found in your site it's automatically go the default  404.html page using .htaccess.if any can search crackerworld.in/live this page not found it. automatically redirect to  crackerworld.in/404.html


.htaccess

errorDocument 400 http://www.yoursite_name.com/404.html
errorDocument 401 http://www.yoursite_name.com/404.html
errorDocument 404 http://www.yoursite_name.com/404.html
errorDocument 500 http://www.yoursite_name.com/404.html


404.html


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>404 Error</title>
<style type="text/css">
*{padding:0;margin:0;}
.warp{width:700px;margin:0 auto;margin-top:8%;}
.error{padding:20px 65px;background:#F60;font-size:200px;width:100px;float:left;margin-right:1px;color:#FFF;text-align:center;}
.home{width:130px;background:#00BFBF;color:#FFF;padding:30px 50px;float:left;margin-top:1px;font-size:40px;text-align:center;}
.page{width:331px;background:#00BFBF;color:#FFF;padding:30px 65px;float:left;margin-top:1px;margin-right:1px; font-size:40px;text-align:center;}
a{color:#FFF;text-decoration:none;}
</style>
</head>

<body>
<div class="warp">
<div class="error">4</div>
<div class="error">0</div>
<div class="error">4</div>
<div class="page">Page Not Found</div>
</div>
<div class="home"><a href="#">Home</a></div>
</div>
</body>
</html>

No comments:

Post a Comment