Creating Custom Error Pages

preview_player
Показать описание
This video discusses how to use your .htaccess file to create automatic redirects for any HTTP Status code.

Remember that if you want to redirect for permission reasons then the error document must be in a location that has no permission restrictions.

If you want, you can make your custom error page a PHP file and add some dynamic functionality by using the actual URL that the user submitted to cause the redirect.

Рекомендации по теме
Комментарии
Автор

Nope, doesn't work for me. :( May be I misunderstood something, but I tried all possible locations for .htaccess and 404.html (custom 404 error page) - apache folder, localhost folder, site folder... No, it's always "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request".

kvolt