Subdomain redirect strategy for communities (portals), etc.
- Create new repo
- Add
index.html
file with redirect details (see example) - Add
CNAME
file with desired subdomain name. Create manually or use Settings/Pages. - Add CNAME record to cloudflare with name = subdomain (e.g.,
cptac
), target =wikipathways.github.io
and proxy =DNS only
The DNS will direct sudomain traffic to the target GitHub org and then GitHub will manage the final direction to the repo containing the matching CNAME file. The repo can contain web content or a simple index.html file with redirect info (like this example).