DEV Community

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

Posted on

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!

Top comments (0)