Apache自定义404错误页面
1.全局设置,httpd.conf文件中添加或修改:
ErrorDocument 404 /404.html
2.针对特定站点设置,在VirtualHost内添加:
ErrorDocument 404 /404.html
3.虚拟机用户修改.htaccess文件添加:
ErrorDocument 404 /404.html
互联网爱好者
1.全局设置,httpd.conf文件中添加或修改:
ErrorDocument 404 /404.html
2.针对特定站点设置,在VirtualHost内添加:
ErrorDocument 404 /404.html
3.虚拟机用户修改.htaccess文件添加:
ErrorDocument 404 /404.html