I just turned off cloudflare proxying and the errant 301 redirect still was happening.
Unfortunately debugging things is going to be a bit awkward to test because the site in question is for a board game where you get a “secret” URL at a certain point when you win the game, so
we don’t want the URL showing up in google results, so I’m hesitant to put in the actual URL in this conversation.
The URL is printed on a physical card in the board game and we were getting dozens of users complaining about the redirect so we had to put in a hacky workaround with cloudflare even though, as you said, cloudflare ideally shouldn’t be used with netlify.
My hands are kind of tied because our workaround is working now and we can’t afford any downtime lest our customer support folks get hammered with angry users.
The problem persists though: without cloudflare redirecting to the url with ‘.html’ at the end, netlify is serving an incorrect 301 redirect to https://boxonegame.com which shouldn’t be there. Neither the netlify.toml nor the _redirects file have such a redirect defined. They used to have such a redirect but it was removed on Saturday.
Something on netlify’s end has cached that 301 redirect which shouldn’t be there.