【发布时间】:2018-06-04 04:36:58
【问题描述】:
所以我最近尝试制作自己的 404 页面。看起来不错,但是经过数小时的搜索如何添加它(没用),我放弃了...如何在具有此结构的每个子域上获得相同的 ErrorDocument?
/var/www
-main site
-.htaccess
-subdomain
-.htaccess
-error
-error***.html (*** = which error, 404 etc)
...
我尝试在 /var/www 中继承 .htaccess,但它给了我一个错误:
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我该怎么做?每次尝试要么只是给我“/error/404.html”作为html,要么遇到错误。文档根目录位于 Subdomains 文件夹中,这就是问题所在。并且返回 .htaccess 中的目录不起作用(../error)。
【问题讨论】: