只需要在您的根Web目录中的htaccess文件中添加以下行即可:ErrorDocument 404 /404page.html 然后,将404page.html文件中的文本内容更改为您想要向用户显示的内容。