【发布时间】:2015-03-24 00:34:23
【问题描述】:
我的 htaccess 文件中有以下内容用于 404 重定向
ErrorDocument 404 /index.html
如您所见,如果有人点击了一个不存在的 URL,例如
http://example.com/NonExistingFolder/nonExisting.html
虽然这确实重定向到我位于根级别的 index.html, 无法定位 index.html 中引用的 css、js 文件 因为它试图在 NonExistingFolder
下找到那些我该如何解决这个问题?
【问题讨论】:
标签: .htaccess redirect http-status-code-404 cpanel