Does one repo support multiple sub-domains? #164202
Replies: 9 comments 3 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
GitHub Pages: Custom Domain Limit & WorkaroundsGitHub Pages only allows one custom domain or subdomain per repository. 1. Use SubdirectoriesInstead of creating separate repos for each subdomain, you can:
2. Use a Static Site Generator or Framworks🔚 Bottom LineYou don’t need 100 repos for 100 pages. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, one repository can support multiple subdomains. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, one Git repository can be used to support multiple subdomains, but it usually requires a bit more configuration. While a single GitHub repository can only be associated with one custom domain, you can use subdirectories within that repository and configure your web server (like Netlify or GitHub Pages) to serve different subdirectories as separate subdomains. |
Beta Was this translation helpful? Give feedback.
-
GitHub Pages allows only one custom domain or subdomain per repository. You cannot map many subdomains (like
References |
Beta Was this translation helpful? Give feedback.
-
|
May I kindly request that future commenters refrain from reiterating points already mentioned above. Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Yes, GitHub Pages currently allows only one custom domain per repository. To handle multiple pages or subdomains without creating 100 repos, you can: Use a single repository with folders: Each folder can host a separate page. Use gh-pages branch or GitHub Actions to deploy specific folders. Use a single domain with subpaths: Example: example.com/project1, example.com/project2 instead of subdomains. Use a reverse proxy or another hosting provider: Services like Netlify, Vercel, or Cloudflare Pages allow multiple subdomains or routes from a single repo. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
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.
-
Select Topic Area
Question
Body
GitHub Pis only allowing me One Custom Domain/Subdomain per Repo. I can't be creating 100 repos for 100 pages/ sub-domains.
Beta Was this translation helpful? Give feedback.
All reactions