I have a Hydrogen site built on marielichtenberg.netlify.app with the custom domain marielichtenberg.com
I have tried creating a _redirects
file in my publish directory with the following content:
/products/baby-locket-coco-diamants-ml-00064 /fr-fr/products/coco-diamonds-baby-locket 301!
...
And also (on a separate deploy, after deleting the _redirects
file) I tried creating a netlify.toml
file with the following content:
[[redirects]]
from = "/products/baby-locket-coco-diamants-ml-00064"
to = "/fr-fr/products/coco-diamonds-baby-locket"
status = 301
force = true
...
On both occassions, this is was my deploy summary…
But when visiting the URL https://marielichtenberg.com/products/baby-locket-coco-diamants-ml-00064 I just get my 404 page, which is basically my site resolving the URL (i.e. shadowing). And if I look in my edge function log I can see this is the case…
Jan 19, 08:47:16 PM: info [handler] GET streaming SSR 200 ok 1860.00 ms https://marielichtenberg.com/products/baby-locket-coco-diamants-ml-00064
How can I get redirects to work?