Subdomain redirect

Hey!

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/

I want to redirect https://tvatt.brfmagelungen.se to an external link.

Any help will be much appreciated!

Best regards,
Björn

Hey there, @Bjunkz :wave:

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.

Thanks for responding.

Here is the repo GitHub - Bjunkz/brfmagelungen: Hemsida till bostadsrättsföreningen BRF Magelungen

Hi @Bjunkz,

Thanks for providing the repo.

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.

Let us know if you have any questions.