DEV Community

Cover image for A Handy Tip for GitHub Pages Custom Domains
Alex Pustovalov
Alex Pustovalov

Posted on

1

A Handy Tip for GitHub Pages Custom Domains

Have you heard about GitHub Pages?

You probably know that GitHub offers free hosting for technical websites via GitHub Pages.

But did you know about a useful feature GitHub Pages provides for organizations?

Here’s how it works:

  1. Create an organization on GitHub.
  2. Navigate to the organization’s settings and find the Pages section.
  3. Add your custom domain there and verify it by following the provided instructions.
  4. Create a repository named .github.io in the organization, where is your organization’s name.
  5. Go to the repository settings, find Pages, and set the same custom domain you verified earlier.

That’s it! From now on, all GitHub Pages repositories you create within this organization will automatically use your custom domain. No need to manually configure the domain for each repository!

I’ve used this setup for a site where I plan to showcase my collection of websites built with TileDocs. https://hub.tiledocs.com

It’s a neat and efficient way to manage custom domains for multiple projects. Give it a try!

Warp.dev image

The best coding agent. Backed by benchmarks.

Warp outperforms every other coding agent on the market, and gives you full control over which model you use. Get started now for free, or upgrade and unlock 2.5x AI credits on Warp's paid plans.

Download Warp

Top comments (0)

👋 Kindness is contagious

Delve into this thought-provoking piece, celebrated by the DEV Community. Coders from every walk are invited to share their insights and strengthen our collective intelligence.

A heartfelt “thank you” can transform someone’s day—leave yours in the comments!

On DEV, knowledge sharing paves our journey and forges strong connections. Found this helpful? A simple thanks to the author means so much.

Get Started