如何 link 两个 HTML 文件出现在同一台服务器上?
How do I link two HTML files present on the same server?
我已经在 infinityfree.net 上注册并在 "upload yours files here".
文件夹中在线上传了我的文件
现在文件夹中有两个 HTML,即
- Index2.html
- chatbox.html
我想 link 一个聊天框到索引文件中的图像我使用了所有正确的标签(我知道因为我试过 https://www.google.com 并且它有效),但我只是没有能做到。
我尝试过的事情:
- "https://www.domain-name.cf/chatbox.html"
- "chatbox.html"
- "/htdocs/chatbox.html"(htdocs 为文件夹名称)
我也遇到了错误 404
和 403
。
请帮忙。
<a href="chatbox.html"><img>...</img></a>
这应该适合你。
因为两个文件都在同一个文件夹中所以可以直接写"chatbox.html".
如果您使用 PHP,您可以使用 header("Location:path_to_your_file");
我意识到 infinityfree 会阻止访问名称中包含 "chat" 的文件,请尝试用另一个不包含 "chat" 的名称重命名 chatbox.html 然后它肯定可以工作.
我已经在 infinityfree.net 上注册并在 "upload yours files here".
文件夹中在线上传了我的文件现在文件夹中有两个 HTML,即
- Index2.html
- chatbox.html
我想 link 一个聊天框到索引文件中的图像我使用了所有正确的标签(我知道因为我试过 https://www.google.com 并且它有效),但我只是没有能做到。
我尝试过的事情:
- "https://www.domain-name.cf/chatbox.html"
- "chatbox.html"
- "/htdocs/chatbox.html"(htdocs 为文件夹名称)
我也遇到了错误 404
和 403
。
请帮忙。
<a href="chatbox.html"><img>...</img></a>
这应该适合你。
因为两个文件都在同一个文件夹中所以可以直接写"chatbox.html".
如果您使用 PHP,您可以使用 header("Location:path_to_your_file");
我意识到 infinityfree 会阻止访问名称中包含 "chat" 的文件,请尝试用另一个不包含 "chat" 的名称重命名 chatbox.html 然后它肯定可以工作.