-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create root domain redirect using gatsby-plugin-netlify #8200
Comments
You can edit directly your
|
@kmorf I tried that. Doesn't seem to be working. Did I do something wrong? Here's the repo.
|
You want a 301 status code, so remove the |
I tried that. Still not working, unfortunately. One other question. Since |
Your redirect is working! In regards to your question, as far as I understand |
Ah, I tried |
@kmorf I am looking into this as well, using
But the output I get is:
Does having |
Just by looking at the code here: gatsby/packages/gatsby-plugin-netlify/src/create-redirects.js Lines 17 to 32 in f502b26
It appears overriding any existing content in the path with |
@RobertWSaunders I found it easier to handle redirects by editing my Can you check that your rules are passed in a
https://www.gatsbyjs.org/docs/actions/#createRedirect |
Yeah using |
Can I use
gatsby-plugin-netlify
to implement Netlify's advice of redirecting my Netlify subdomain to my custom root domain?I naively deployed the following changes to
gatsby-node.js
after installing and addinggatsby-plugin-netlify
to mygatsby-config.js
but they don't seem to take any effect.The text was updated successfully, but these errors were encountered: