I have an _redirects
file like this:
https://example.netlify.com/* https://example.com/:splat 301!
in the root folder.
How do I use gatsby-plugin-netlify
to redirect from https://example.netlify.com
domain to https://example.com
?
You need to put the _redirects
file inside the static
folder, because Netlify will look for it inside the build (/public
) folder, not the source.