I have a domain (kg) set up with Netlify. I already have a subdomain (sc) with different content set up using a branch on my GitHub repository. I’m trying to make s-c redirect to sc, but I can’t get it to work. I use Netlify DNS. I’ve tried adding a CNAME record to my configuration:
Name: sc TTL: 3600 seconds Type: CNAME Value: s-c
but navigating to s-c just produces a “Not found” message.
I’ve also tried adding a netlify.toml file to the studentcommunity branch of my GitHub repository:
[[redirects]] from = "https://student-community.kaveergera.com" to = "https://studentcommunity.kaveergera.com" status = 301 force = true
but that didn’t work. I also tried putting the same config file on my main branch, but that didn’t work either. I was trying to follow this documentation: Redirect options | Netlify Docs, but I’m not able to get it to work.
(Adding a domain alias for s-c in the domain settings redirects s-c to kg, not s-c to sc.)
I really appreciate any help. Thank you in advance!