【发布时间】:2017-09-29 22:46:44
【问题描述】:
我遇到了一个关于 CSS 和图像文件的链接断开的奇怪问题。
在我们的网站上,一切都按预期工作。如果您输入不存在的 URL 路径,例如 http://example.com/test,则 404 not found 应该会出现。
但是,如果您输入不同的路径 http://example.com/another/test.html,也会出现 404 页面,但指向 CSS 和图像的链接会损坏。
此外,URL 有时会解析为 http://example.com/example.com/kontakt,其中包含实际域 example.com。
也许有人对此问题有解释/解决方案....
【问题讨论】:
标签: .htaccess http-status-code-404 broken-links brokenimage