It redirects, so... yeah.
-
After forking the repository, go to Settings > Pages.
-
Select the following settings:
- Source: Deploy from a branch
- Branch:
main
, with/(root)
directory.
-
Hit 'Save'. The 'Custom domain' section should automatically pick up the subdomain from the
CNAME
file. -
Now, add a DNS record for your domain with the following:
- Type: CNAME
- Name:
YOUR_SUBDOMAIN
(ex:redirect
forredirect.mitblr.club
) - Value:
mitblr-club.github.io
Now, after saving the record and waiting for changes to kick in, GitHub Pages should redirect to your required page.