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!

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay