我想从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的支持?我目前有一个相当便宜的计划,基本上只提供Hosting + PHP + MySQL。如果我多付6欧元,我会得到一个Zone-Modul(区域描述为“您的域的DNS控制”)。我需要一个防区模块吗?
正如帮助页面所说:
对于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
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句