Setting up custom subdomains

Hello there! Apologies if this topic has been created (actually, many, many times), but I can’t seem to figure out how to do this.

Is it possible for me to use an apex domain (as an example, my domain arashnrim.me) and use GitHub Pages to create a custom subdomain (beta.arashnrim.me)? I’ve done the following steps:

  • Added a CNAME file in another repository with beta.arashnrim.me inside
  • Added a CNAME entry in my domain’s DNS configuration with the host as beta and value as arashnrim.github.io. (it seems that the platform I use, Namecheap, added the . at the end):

It appears that beta.arashnrim.github.io and beta.arashnrim.me lead to a ‘valid’ site, but it’s a GitHub Pages 404 page. Here’s the link to the repository for this project.

Apologies once again if this is a recurring question! All help is appreciated.

1 Like

Turns out that I accidentally made my project (in this case, it’s made using Gatsby) in another folder. Once relocating the project out to the root-level, the link works. Thanks, and hope this helps!

1 Like

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.