Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
gatsby-plugin-netlify: _redirects file in static folder is not recognized #6268
I'm trying to redirect the default Netlify subdomain to my primary domain as advised by Netlify for SEO purposes. In the Gatsby docs of the Netlify plugin it says:
So I added a file at
However, after deploying if I go to the Netlify subdomain I do not get redirected to my primary domain and stay on the subdomain. What am I doing wrong?
This is the first (minor) issue I have where I didn't find any solution in the docs or in existing issues on GitHub. So, I really appreciate the great work of the community! Thanks in advance.
Good idea, I forgot about that. It didn't contain the file, but the resulting public folder structure gave me an idea: My location of the static folder was wrong. After I changed it from
Thanks and issue closed!