: How to Connect a Custom Domain to GitHub Pages from Egypt (2026)
Hosting & Domains 14 Jul 2026

: How to Connect a Custom Domain to GitHub Pages from Egypt (2026)

If you built your site and published it for free on GitHub Pages, it's probably still running on a link like username.github.io. That link works, but it doesn't look professional or build trust with your clients. The fix is connecting a custom domain with your own name (like yoursite.com) — and it's easier than you think, done entirely for free with an HTTPS security certificate. Let's walk through it step by step.

Quick summary

Connecting a custom domain to your GitHub Pages site takes two steps: add the domain in GitHub settings (Settings then Pages), and set DNS records at your domain provider — A records for the apex domain and a CNAME for www — then enable HTTPS. Changes take up to 24 hours to propagate. And if you don't have a domain yet, you can buy one in EGP (Vodafone Cash / InstaPay) with no international card.

Why connect a custom domain?

The default link (username.github.io/repo) works, but a custom domain is more professional and trusted, better for SEO and branding, and yours to keep — you can move it to any host later without losing your name. GitHub Pages provides it for free, with an automatic HTTPS certificate.

Step 0: Buy your domain (pay in EGP)

You need a domain first. If you don't have one, buy it from IT PLUS and pay in Egyptian Pounds via Vodafone Cash or InstaPay — no international Visa needed. We help you pick the name, buy it, and set it up.

The steps in detail

1) Add the domain in GitHub settings

Open your site's RepositorySettings then Pages. In the Custom domain field, type your domain and click Save. This adds a CNAME file to your repo — leave it in place.

2) Configure DNS at your domain provider

a) Apex domain (yoursite.com): add 4 A records, name @, with these values:

  • 185.199.108.153
  • 185.199.109.153
  • 185.199.110.153
  • 185.199.111.153

(Optional IPv6 — add AAAA records, name @:)

  • 2606:50c0:8000::153
  • 2606:50c0:8001::153
  • 2606:50c0:8002::153
  • 2606:50c0:8003::153

b) www subdomain: add one CNAME record, name www, value username.github.io (replace username with your GitHub username — it's github.io, not the repo name).

Best practice: set both (A for the apex + CNAME for www).

3) Back in GitHub, enable HTTPS

Wait for GitHub to verify the domain (a ✅ appears next to it), then tick Enforce HTTPS. If it's greyed out, wait while GitHub provisions the free certificate.

4) Wait and verify

DNS changes take up to 24 hours to propagate (usually much less). Open your domain — it should load with a 🔒 (HTTPS).

Common mistakes (and fixes)

  • "DNS check unsuccessful": records are still propagating, or an old record conflicts — remove it and wait.
  • Opens on www but not the apex (or vice versa): set A for the apex and CNAME for www.
  • Enforce HTTPS greyed out: the certificate is still provisioning — wait, and verify the domain first.
  • Site went down after a deploy: the CNAME file was removed — restore it.
  • Used the repo name instead of username.github.io: it must be username.github.io.

From our experience at IT PLUS

We've connected many domains across platforms (GitHub Pages, Easy Orders, Lovable, WordPress). The thing that stops people most isn't the technical steps — it's buying the domain because of the international-card barrier. That's why we let you buy the domain in EGP and connect it for you. We're an Egyptian software company since 2013 (135+ projects).

Frequently asked questions

Is connecting a custom domain to GitHub Pages free? Yes. Custom domains and a free HTTPS certificate are free. You only pay for the domain yearly.

What's the difference between an A record and a CNAME? An A record is for the apex domain and points to GitHub's IPs. A CNAME is for the www subdomain and points to username.github.io.

How long until the site appears? Up to 24 hours to fully propagate, usually minutes to a few hours.

Why isn't Enforce HTTPS available? GitHub is still provisioning the SSL certificate, or the domain isn't verified yet. Wait and refresh.

Can I buy the domain from Egypt without an international card? Yes — from IT PLUS in EGP via Vodafone Cash or InstaPay.

I bought the domain elsewhere — can I still connect it? Absolutely. It's done via DNS settings at any provider, using the same records above.

Key points

  • Two steps: configure GitHub + set DNS records.
  • Apex → 4 A records (185.199.108–111.153). www → a CNAME to username.github.io.
  • Keep the CNAME file in the repo, enable Enforce HTTPS after verification.
  • Propagation up to 24 hours.
  • Buy the domain in EGP with no international card from IT PLUS.

Read also

  • How to buy a domain for your online store in Egypt 2026
  • How to connect a domain to your Easy Orders store (pay with Vodafone Cash)
  • How to buy and connect a domain for your Lovable website from Egypt
  • IT PLUS domains & hosting service · Contact us

About the author

The IT PLUS team — an Egyptian software company since 2013 (135+ projects), specialized in web and mobile development, hosting, and domains.

Leave a Comment

Comments (0)

No comments yet. Be the first to comment!