Имаме .htaccess файл
в него имаме съдържание
ErrorDocument 404 /404.html
deny from ip adres
Имаме и файл 404.html
със съдържание
<html>
<head>
<title>test</title>
</head>
<body>
<h3>Test</h3>
</body>
</html>
Отваряме страница/asdasd, но излиза
А не това което е в 404.html
в него имаме съдържание
ErrorDocument 404 /404.html
deny from ip adres
Имаме и файл 404.html
със съдържание
<html>
<head>
<title>test</title>
</head>
<body>
<h3>Test</h3>
</body>
</html>
Отваряме страница/asdasd, но излиза
Код:
Not Found
The requested URL /asdasd was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
А не това което е в 404.html