
网站的页面是.php后缀的,不是很友好,上传了404.html后发现还是显示404.php,我打开.htaccess一看,果然:
有这句:ErrorDocument 404 /404.php
我修改后:ErrorDocument 404 /404.html
立即生效了,如果你发现网站404页面失效的话,你应该这样做:(正对apache)
网站的页面是.php后缀的,不是很友好,上传了404.html后发现还是显示404.php,我打开.htaccess一看,果然:
有这句:ErrorDocument 404 /404.php
我修改后:ErrorDocument 404 /404.html
立即生效了,如果你发现网站404页面失效的话,你应该这样做:(正对apache)