как да го наглася тоя код за да дава тазигрешка

ludasam

Registered
здравейте не знаех как да напиша заглавието значи искам да наглася този код ако някой иска да влезне в сайта и напише една буква
грешна да му да де тоз ерор Например http://cs-haskovo.info/d

2rgmexi.png

Код:
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Cs-HaSkoVo.InFo 404 Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="robots" content="index">
</head>
<body>
<style>
body {
background: #000000;
background-attachment: fixed;
background-image: url('imgpan/404.png');
background-position: 100% 100%;
background-repeat: no-repeat;
color: #333333;
margin: 55px 5px 5px 5px;
padding: 0px 0px 0px 0px;
}
</style>

<table height="100%" width="580" border="0"  align="center">
<tr><td height="*"> </td></tr>
<tr>
<td height="*" width="90%">
<table style="border: 1px #CCCCCC dashed;" width="100%">
<tr><td bgcolor="#666666" width="*"><div align="center" style="font-size: 22px; font-weight: bold;">404 - Page not found</div></td></tr>	  
<tr><td bgcolor="#333333" colspan="2">
<br><span style="font-size: 18px; font-weight: bold; color: #FF0000;"><div align="center">Файлът, който се опитвате да достигнете не бе намерен !</div></span>
<span style="font-size: 14	px; font-weight: normal; color: #000000;"><div align="center"><br>Възможните причини за това са:</div>
<blockquote> 
<blockquote> 
<li>физически не съществува на сървъра; 
<li>грешна връзка (hyperlink) към него;
<li>въвели сте невалиден адрес или сте допуснали грешка.
</blockquote> 
</blockquote>  
</span>
</td></tr>	  
<tr><td bgcolor="#666666" colspan="2" align="left" height="15">
<a href="http://redy-zone.info/">
<div align="center" style="font-size: 22px; font-weight: bold;">Cs-HaSkoVo.InFo: LuDaKa © 2009
</div></a></td></tr>	  
</table>
</td>	 
<tr><td height="*"> </td></tr>
</table>
</body>
</html>
[/code]
 
Направи 1 файл error.php с това съдържание

Код:
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Cs-HaSkoVo.InFo 404 Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="robots" content="index">
</head>
<body>
<style>
body {
background: #000000;
background-attachment: fixed;
background-image: url('imgpan/404.png');
background-position: 100% 100%;
background-repeat: no-repeat;
color: #333333;
margin: 55px 5px 5px 5px;
padding: 0px 0px 0px 0px;
}
</style>

<table height="100%" width="580" border="0"  align="center">
<tr><td height="*"> </td></tr>
<tr>
<td height="*" width="90%">
<table style="border: 1px #CCCCCC dashed;" width="100%">
<tr><td bgcolor="#666666" width="*"><div align="center" style="font-size: 22px; font-weight: bold;">404 - Page not found</div></td></tr>    
<tr><td bgcolor="#333333" colspan="2">
<br><span style="font-size: 18px; font-weight: bold; color: #FF0000;"><div align="center">Файлът, който се опитвате да достигнете не бе намерен !</div></span>
<span style="font-size: 14   px; font-weight: normal; color: #000000;"><div align="center"><br>Възможните причини за това са:</div>
<blockquote>
<blockquote>
<li>физически не съществува на сървъра;
<li>грешна връзка (hyperlink) към него;
<li>въвели сте невалиден адрес или сте допуснали грешка.
</blockquote>
</blockquote> 
</span>
</td></tr>    
<tr><td bgcolor="#666666" colspan="2" align="left" height="15">
<a href="http://redy-zone.info/">
<div align="center" style="font-size: 22px; font-weight: bold;">Cs-HaSkoVo.InFo: LuDaKa © 2009
</div></a></td></tr>    
</table>
</td>   
<tr><td height="*"> </td></tr>
</table>
</body>
</html>

после отвори файла .htaccess и вътре напиши това
ErrorDocument 404 http://tvoqtsait.info/error.php
 

Back
Горе