Two domains on one host #41822
Replies: 5 comments 9 replies
-
|
Hello! Either way is possible, but I would highly recommend having one domain redirect to the other rather than keeping the same website live on both (even if you are sharing one repository). Keeping two websites live just puts duplicate data on your server, which can slow things down (largely depending on how big the website is). In terms of which domain to redirect to the other, that is personal preference and depends on how you want to set things up. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @neuromobster, It's worth noting that, regardless of which approach you choose, you will still need to maintain both domains separately, as they are treated as distinct entities by the domain name system. However, by using one of the above methods, you can ensure that both domains point to the same content, making it easier to update and manage your website. |
Beta Was this translation helpful? Give feedback.
-
how To set two domains pointing to the same repository, you will need to follow these steps:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
As others have mentioned, serving two domains from one repository does not seem to be possible. Also I want to point out that if you attempt to do this by pointing two domains at Github pages, then adding two lines to your |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone! Is it possible to have two domains on one repository? We bought two domains (.com & .org) and would like these 2 domains to point to the same web page as it would be inconvenient to update the content on both repositories every time. If not, is it otherwise possible to have somehow the .org domain redirect to the .com domain homepage without having two repositories? Thanks for reading.
Beta Was this translation helpful? Give feedback.
All reactions