Home
Support Forums

Netlify URL not 301 redirect not working

deuren.netlify.app

I’ve added these rules to my _redirects file to redirect the netlify.app URL to my custom domain, but it’s not working:

https://deuren.netlify.app https://www.deuren.co.uk/
http://deuren.netlify.app https://www.deuren.co.uk/

Can you please advise me what I’m doing incorrectly? The aim of this is to stop the netlify.app URL from being crawled by google.

Hi @imjb87,

The rule should look like:

https://deuren.netlify.app/* https://www.deuren.co.uk/:splat 301!

Just this 1 rule is enough.