我想从WordPress切换到Jekyll.我已经迁移了文章(参见新的Jekyll文章+渲染页面和旧的WordPress网站).
现在我想要旧的URL:
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页面使用Pages设置自定义域,但我仍然不明白我应该做什么.
我已经尝试将包含内容的CNAME文件添加martin-thoma.com
到我的GitHub存储库中,但这只会导致重定向martinthoma.github.io
到martin-thoma.com
.我刚刚尝试martinthoma.github.io
在Knallhart提供的网站空间中添加带有内容的CNAME .这似乎没有效果.
我想我必须在GitHub和Knallhart上改变一些东西.GitHub必须知道它应该显示,martin-thoma.com
而Knallhart必须重定向到内容.但我不明白该怎么做.我需要在GitHub上更改什么,以及我在提供商方面需要做些什么?
我可以自己做这个还是需要Knallhart的支持?我目前有一个非常便宜的计划,基本上只提供托管+ PHP + MySQL.如果我支付6欧元以上,我会得到一个Zone-Modul(其中包含"您所在域名的DNS控制"的说明).我需要Zone-Modul吗?
正如帮助页面所说:
对于像example.com这样的域,您应该使用指向204.232.175.78的A记录:
在你的情况下,你需要创建一个A
记录martin-thoma.com
,以我的为例(我不使用Knallhart,也许它是不同的,只要确保你A
记录204.232.175.78
,Github提供):
Host |record type | host/IP *.kjuly.com A 204.232.175.78 (Edit: NOT Recommended) @.kjuly.com A 204.232.175.78
注意:CNAME
记录适用于子域名dev.martin-thoma.com
.
依赖于Github的官方博客文章"GitHub Pages Legacy IP Deprecation",204.232.175.78
不推荐使用,你应该使用192.30.252.153
或192.30.252.154
代替.
Host |record type | host/IP @.kjuly.com A 192.30.252.153