gpt4 book ai didi

github - 从 GitHub 页面中删除 html 扩展

转载 作者:行者123 更新时间:2023-12-02 10:40:02 26 4
gpt4 key购买 nike

我正在使用 GitHub 页面来托管我的最新站点:

http://mysite.github.io/
我想知道是否有办法从子页面的末尾删除 .html 扩展名:
http://mysite.github.io/contact.html
因为无法访问服务器。

最佳答案

我假设您必须使用子目录(但可能有更简单的方法):

/index.html            => http://jasonhoffmann.github.io
/contact/index.html => http://jasonhoffmann.github.io/contact

但是,您可能有更多的控制权使用 CNAME 将 GitHub 页面重定向到您自己的 domain .抱歉,我没有给你一个明确的答案,但希望这可以让你开始。

关于github - 从 GitHub 页面中删除 html 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21244910/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com