从GitHub页面中删除html扩展 [英] Remove html extension from GitHub Pages
问题描述
我使用GitHub页面托管我的最新网站( http://jasonhoffmann.github.io/)。我想知道是否有方法从子页面末尾删除.html扩展名( http:/ /jasonhoffmann.github.io/contact.html ),因为无法访问服务器。
I'm using GitHub pages to host my latest site (http://jasonhoffmann.github.io/). I was wondering if there was a way to remove the .html extension from the end of sub-pages (http://jasonhoffmann.github.io/contact.html) since there is no access to the server.
推荐答案
I假设你将不得不使用子目录(但可能有一个更简单的方法):
I would assume you would have to use subdirectories (but there may be a simpler way):
/index.html => http://jasonhoffmann.github.io
/contact/index.html => http://jasonhoffmann.github.io/contact
但是,您可能会使用CNAME来控制更多将GitHub页面重定向到您自己的域。对不起,我没有给你明确的答案,但希望这可以让你开始。
However, you may have more control using CNAME to redirect the GitHub page to your own domain. Sorry I don't have a definite answer for you, but hopefully this can get you started.
这篇关于从GitHub页面中删除html扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!