遇到 404 错误,尽管路径和文件存在正确,网站仍然无法工作

问题描述 投票:0回答:1

当我尝试从另一个页面导航到指定页面时,我遇到 404 错误,尽管文件和文件夹存在。

<a href="inwekpuhien/inwekpuhien.html" style="text-decoration: none; cursor: default;">
   <img src="https://github.com/Syrinca/Syrinca.github.io/assets/165695271/eb958813-b3ae-4d71-8508-90a6000dff41" alt="" style="float: left; height: 190px; width: 20px;">
</a>
html github-pages
1个回答
0
投票

尝试将标签中的 href 设置为

./inwekpuhien/inwekpuhien.html
。如果这不起作用,请尝试将 html 文档的文件名更改为 index.html 并将 href 放在锚标记中
./inwekpuhien
。如果您可以向我们展示您的文件结构以及网页中发生的更多上下文,这将很有用。

希望这有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.