Hey there, @williamthorsen
Thanks so much for reaching out and for writing such a detailed post. I took a look in the Forums, and it seems as though these two threads may have some clues to help you get on the right track:
One of my redirects started randomly failing and returning 500 from netlify:
❯ curl -I "https://aec.works/auth/linkedin"
HTTP/2 500
server: Netlify
date: Mon, 05 Jul 2021 20:30:53 GMT
age: 0
x-nf-request-id: 3f313c08-50a6-4bf3-8819-7d19391fdbc4
Redirect Config:
netlify.tml:
App:
I looked at similar questions here but I am not sure it’s the same issue
https://answers.netlify.com/t/redirect-randomly-returns-500/39958
Seems like it could be an error on my end possibly related to my auth …
After deploy I can’t seem to verify my redirects written with a netlify.toml file.
I have this from the deploy summary:
4 redirect rules processed
All redirect rules deployed without errors.
Yet a quick check visiting a redirected url does not result in a 301, but a 200
E.g.
[[redirects]]
from = “/?url=bybarner.dk&id=1184”
to = “/booking”
status = 301
This is how I copy the toml file:
nuxt generate && cp netlify.toml dist
Additionally, this Support Guide is a good port of call for debugging redirects issues:
Last checked by Netlify Support Team: September 2023.
Introduction
You’ve put blood, sweat and tears into building an incredible static site with all the bells and whistles. However, you’ve configured some redirect rules and you’ve come unstuck… they don’t appear to be working!
Ensure you’ve followed the correct guidance
Our redirects and rewrites document covers a broad range of use cases, from status codes to proxying another service and everything in between.
Ensure you’re using the correc…
Can you take a look at those resources and walk through the suggestions? If at the end of that you are still encountering your error, please let us know and I can loop in a Support Engineer