Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用具有页面的 html5 样板,404.html但如果我导航到错误的 URL,它不会显示。浏览器显示默认的 404 页面。htaccess 文件已经有这一行:
404.html
ErrorDocument 404 /404.html
一些帮助?
您是否已在目录指令中设置AllowOverride All?这必须在您的服务器配置中的某个位置。例如虚拟主机配置:
AllowOverride All
<Directory /path/to/htdocs> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All # this All here is important, default is none Order allow,deny Allow from all </Directory>