I have a really simple. I have a domain https://www.thejump.tech that points to hardcore-villani-ef6ea2.netlify.com using a DNS CNAME record using Netlify DNS. I want to set up a sub-domain https://student-portal.thejump.tech to aim at the URL https://student-portal-the-jump-portal-team.vercel.app/ (obviously offsite on vercel). I’m trying to find the best way to achieve that.
I have read the redirects rules but am not totally sure of the best way. Do I need to add a _redirects file to the root of my netlify site? I tried adding a CNAME DNS entry for the subdomain that aimed at the vercel site but that didn’t work.
Hi welcome to the forums. You can add a _redirects file to the root of your Netlify site to handle redirects and rewrites. This file should be saved without a file extension to the publish directory of your site. You can also add one or more redirects tables to your Netlify configuration file for a more structured configuration.
Here is an example of how you might set up a redirect in your _redirects file or netlify.toml file: