How do I set up GitHub Pages to redirect DNS requests from a subdomain (e.g. www) to the top-level domain (TLD, Apex record)?
Short answer Step 1: Add a new file CNAME to your GitHub Pages repository containing only one line: your top-level domain name. E.g.: example.com Step 2: [Optional] but highly recommended 2.1: Remove all other top-level records (prefixed with @) of type A from your DNS configuration. 2.2: Remove a CNAME record for the second-level domain … Read more