How can I use Jekyll with my domain but hosted on GitHub?

I want to switch from WordPress to Jekyll. I have already migrated articles (see New Jekyll articles + made pages and old WordPress site).

Now I would like to have the old urls:

Old URL : http://martin-thoma.com/word-error-rate-calculation/ Current new URL: http://martinthoma.imtqy.com/word-error-rate-calculation/ 

So, this question really only applies to the top-level domain. My provider (called "Knallhart") must "hold" the martin-thoma.com domain (GitHub does not offer this, right?), And GitHub must serve the content.

When the user enters http://martin-thoma.com/word-error-rate-calculation/ or http://martinthoma.imtqy.com/word-error-rate-calculation/ , the browser should show http://martin-thoma.com/word-error-rate-calculation/ , although the content is on GitHub.

I know a GitHub page Setting up a custom domain with pages , but I still don't understand what I should do.

I tried adding a CNAME file with the contents of martin-thoma.com to my GitHub repository, but that would only result in redirecting from martinthoma.imtqy.com to martin-thoma.com . I just tried adding a CNAME with martinthoma.imtqy.com content on a web space provided by Knallhart. This does not seem to have any effect.

I think I need to change something on GitHub, as well as on Knallhart. GitHub should know that it should display martin-thoma.com , and Knallhart should redirect to content. But I do not understand how to do this. What do I need to change on GitHub and what do I need to do on the side of my provider?

Can I do it on my own or do I need support from Knallhart? I currently have a pretty cheap plan that basically only offers hosting + PHP + MySQL. If I pay another 6 euros, I will get Zone-Modul (which contains the description "DNS controll for your domain"). Do I need a Zone-Modul?

+6
source share
1 answer

As shown by HELP PAGE :

For a domain like example.com, you should use an A record pointing to 204.232.175.78:

In your case, you need to create an A record for martin-thoma.com , take mine as an example (I am not using Knallhart, maybe it is different, just make sure you record A on 204.232.175.78 , which Github offers):

 Host |record type | host/IP *.kjuly.com A 204.232.175.78 (Edit: NOT Recommended) @.kjuly.com A 204.232.175.78 

Note : The CNAME record is for subdomains such as dev.martin-thoma.com .


EDIT (IMPORTANT):

GitHub Pages 204.232.175.78 deprecated depending on the official Github blog post. You should use 192.30.252.153 or 192.30.252.154 .

 Host |record type | host/IP @.kjuly.com A 192.30.252.153 
+7
source

All Articles