在网站根目录下建个.htaccess
加入404地址:ErrorDocument 404 /missing.html
如上,missing.html就是你的404自定义页面,你只需要编辑根目录下的missing.html就可以了。
apache 404 file not found 重定向自定义的办法ErrorDocument 404
最新推荐文章于 2022-04-15 19:56:59 发布
在网站根目录下建个.htaccess
加入404地址:ErrorDocument 404 /missing.html
如上,missing.html就是你的404自定义页面,你只需要编辑根目录下的missing.html就可以了。