I’m having trouble getting a redirect for a subdomain to work. I’m running a NextJS project and I have added a _redirect file in my public folder. I have a custom domain for my site which is brfmagelungen.se but the netlify address is https://brfmagelungen.netlify.app/
Thanks so much for reaching out? Can you please share your project repo with us? If that is not possible, can you please share how you have configured your _redirects? This will help us investigate further.
If I understand correctly, when going to the subdomain https://tvatt.brfmagelungen.se it should redirect to an external link. Currently, the subdomain hasn’t been added to the site. Was it removed? You’ll want to add the subdomain to the site here.
For the redirect, I did find this other Netlify Support Forum post that may help with creating the redirect here of a subdomain to an external site:
Additionally, we have a Netlify Next.js template and the Netlify Next.js plugin docs that has additional information on redirect here and here.