【发布时间】:2014-01-01 10:24:35
【问题描述】:
我想从 WordPress 切换到 Jekyll。我已经迁移了这些文章(请参阅新的 Jekyll 文章 + 渲染页面和旧的 WordPress 网站)。
现在我想要旧网址:
Old URL : http://martin-thoma.com/word-error-rate-calculation/
Current new URL: http://martinthoma.github.io/word-error-rate-calculation/
所以这个问题实际上只与顶级域有关。我的提供者(称为“Knallhart”)应该只“持有”域 martin-thoma.com(GitHub 不提供这个,对吗?)并且 GitHub 应该提供内容。
当用户输入 http://martin-thoma.com/word-error-rate-calculation/ 或 http://martinthoma.github.io/word-error-rate-calculation/ 时,浏览器应显示 http://martin-thoma.com/word-error-rate-calculation/,尽管内容位于 GitHub。
我知道GitHub页面Setting up a custom domain with Pages,但我仍然不明白我应该做什么。
我尝试将内容为 martin-thoma.com 的 CNAME 文件添加到我的 GitHub 存储库,但这只会导致从 martinthoma.github.io 重定向到 martin-thoma.com。我刚刚尝试在 Knallhart 提供的网络空间上添加内容为 martinthoma.github.io 的 CNAME。这似乎没有效果。
我认为我必须在 GitHub 以及 Knallhart 上进行一些更改。 GitHub 必须知道它应该显示 martin-thoma.com 并且 Knallhart 必须重定向到内容。但我不明白如何做到这一点。 我必须在 GitHub 上进行哪些更改?我必须在我的提供商方面做什么?
我可以自己执行此操作还是需要 Knallhart 的支持?我目前有一个相当便宜的计划,基本上只提供 Hosting+PHP+MySQL。如果我多付 6 欧元,我会得到一个 Zone-Modul(其描述为“您的域的 DNS 控制”)。 我需要 Zone-Modul 吗?
【问题讨论】: