i'm having this issue with my server, i'm trying to do a Error 404 display, but whn i go to an invalid URL i get this message.. Please where could the problem coming from?
The requested URL /church/ffff.php was not found on this server.
Additionallt, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request
thank you.
Whats your .htaccess look like?
You can add a custom handler like this:
In .htaccess (the top of it is best) ErrorDocument 404 404.php
似乎服务器没有权限访问404文件,要解决此问题,应将文件与htaccess放在同一文件夹中,而不要编写完整路径(/c:wamp/www/church/404.php),应该只写文件名-404.php
oh it's because the htaccess doesnt automaticly enabled on local host you need to do this:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.