fermaud
November 13, 2023, 10:07am
1
Hi, I’ve set one redirection in my netlify.toml but it seems that its not working
Netlify.toml
[[redirects]]
from = "https://crossfit-compet-scanner.netlify.app/*"
to = "https://crossfit-event-scanner.fr/:splat"
status = 301
force = true
Site ID: crossfit-compet-scanner
Thank you
clarnx
November 13, 2023, 11:43am
2
Hi @fermaud , thanks for the post and welcome.
kindly change the code to the content below to see if it works.
Let me know the outcome.
[[redirects]]
from = "/*"
to = "https://crossfit-event-scanner.fr/:splat"
status = 301
force = true
fermaud
November 13, 2023, 1:43pm
3
Hi @clarnx , I’ve just update it and it still does not work …
clarnx
November 13, 2023, 1:58pm
4
Thanks for the update.
Which folder are you placing the netlify.toml
file?
Also if possible can you share a repository for me to help with the debugging.
Thanks.
fermaud
November 13, 2023, 2:32pm
5
I’ve placed it at root.
Yes no problem can you provide me your Github username ?
clarnx
November 13, 2023, 4:04pm
7
Hi @fermaud , thanks for sharing.
I took a look at the netlify.toml
file. Kindly change to the content below
[[redirects]]
from = "/*"
to = "https://crossfit-event-scanner.fr/:splat"
If the above does not work, kindly use the _redirects
file instead of the netlify.toml
file.
Place the _redirects
file in your public
folder.
Check the link below on how to configure the _redirects
file.