我无法更改我网站的404页面。我创建了页面errore.html
,并创建了文件.htaccess
:
ErrorDocument 404 /errore.html
但是仍然在网站上显示默认的404页面。
文件errore.html
和.htaccess
都在站点的根文件夹中。
确保httpd.conf文件中的设置是正确的。
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All