【发布时间】:2020-03-18 05:18:58
【问题描述】:
当我上传到 GitHub 并成功发布时,我有一个简单的静态 Web 应用程序,它在现场显示,但问题是,当我单击外部链接并再次使用 chrome 的后退箭头返回时它像这样向我展示,并假设在我的应用程序中我提到了像 <a href="https://facebook.com"></a> 这样的链接,然后返回错误显示如下,您可以检查以下错误。
404
File not found
The site configured at this address does not contain the requested file.
If this is your site, make sure that the filename case matches the URL.
For root URLs (like http://example.com/) you must provide an index.html file.
这是我在 GitHub 上的 Dist 文件夹,你可以看到 index.html 在那里,然后它也显示错误 404 文件未找到。
我更喜欢这个解决方案,但不适合我,这是Link,我发现了很多资源但没有工作。
【问题讨论】:
标签: github angular6 http-status-code-404 publish file-not-found