使用 GitHub 页面时更改目录索引的选项

Options for changing the directory index when using GitHub Pages

我正在使用 GitHub 页面托管网站,我想将我的 index.html 文件重命名为其他名称(例如 home.html)。问题在于 GitHub 专门查找并加载默认的“index.html”作为目录索引。

我知道可以通过 .htaccess 等服务器配置文件更改目录索引,但 GitHub Pages 不支持这些。

我环顾四周,但没有成功,所以我想看看是否有任何选项可以更改“index.html”文件的名称,以尝试 'prettify' 链接回到我的主页。

更新:与使用重定向相比,我更愿意实际更改 GitHub 正在寻找的目录索引文件的名称。

一种可能性是添加从 index.html 页面到新的 home.html.

的重定向

因此,index.thml 页面仍然存在,但几乎是空的。
参见“Redirect from an HTML page?" or "What is the best approach for redirection of old pages?”。

<meta http-equiv="refresh" content="0; url=home.html" />