문제

I know how to create a custom error page using the apache htaccess file:

ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php

But is it possible to have a custom error page without using the htaccess file?
I have access to the server and all its settings

도움이 되었습니까?

해결책

You can use the same code inside your apache virtualhost ; it will have the same behaviour.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top