DEV Community

Discussion on: How to redirect your hosted GitHub page to a custom domain

Collapse
 
quintron profile image
Quintin Maseyk • Edited

Thanks for the post. Can you please expand on your paragraph here:

For example, if I had mywebsite.com, and deployed a page mywebsite.com/books
add into your DNS configuration
books , CNAME, and 'yourGitHubUsername'.github.io .

I'm interested because we currently host our "blog" website on GitHub Pages.
Let's say I've got a public website which is managed and hosted somewhere else: www.mywebsite.com.
Instead of just creating a custom sub-domain ie blog.mywebsite.com id like to push all the paths which look like www.mywebsite.com/blog* to proxy the GitHub Page.

I would have thought your quote above books , CNAME, and 'yourGitHubUsername'.github.io . only applies that change at a sub-domain level (not path based)?

Collapse
 
xtineskim profile image
Christine Kim

Hi Quintin, I've changed the configuration of my personal site since this blog post, but let me see if I understand your question correctly:

  • you'd like to have paths deployed under your url That's correct- so if you have the src code, then you'd have to add a route and display a different page. My paragraph is miss-leading, I should elaborate more on how the paths carry through! thanks for pointing that out :)