Home
Support Forums

Subdomain redirect does not work

I need to add a subdomain on my website with the value “webmail.mysite.com.br” where the user when accessing is redirected to the address ''Server error". What is the best way to do this configuration? I’m currently using netlify DNS.

my _redirect file is inside the build folder

Hi @moraesdev

The first rule in your redirects /* catches everything so the second rule never get run. Switch the order of your rules.

If you haven’t, you will need to add webmail.rosaimoveis.com.br as a domain alias to your main site.

@coelmay It worked perfectly! Thank you very much ! In fact the first rule using /* was overwriting the second one!