github - 将 index.html 以外的内容用于 Github 页面

标签 github hosting github-pages

我最近开始使用 github 页面,到目前为止我使用默认的 index.html 作为我的主页。如何使用另一个页面作为我的默认页面?例如,如果在我的 gh-pages 分支中,我的 html 位于文件夹 src/中。如何将 ./src/index.html 设置为默认值而不是 ./index.html?

最佳答案

创建虚拟 index.html 并将其放在标题中

<meta http-equiv="refresh" content="0; url=http://mysite.github.io/folder/index.html" />

更改 http://mysite.github.io/folder/index.html到您想要的网址。

关于github - 将 index.html 以外的内容用于 Github 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27330188/

相关文章:

jekyll - 将 .nojekyll 文件推送到 Github 页面,没有效果?

github - 有没有办法知道谁下载了我的 Github 存储库

python - github3.py。已提交文件的空列表

git - 限制某些 GitHub 用户 merge 分支

php - 用于 PHP/MySQL 的 SVN

github - 在现有 html 上应用 GitHub 页面主题

github - 删除 ubuntu 12.04 上的代理设置

redirect - Google 协作平台上的裸域 新

node.js - 我如何托管Node JS和MongoDB

apache - 使用 mod_rewrite/RewriteCond 规则进行内容协商