Single redirect not working

Hi!

So, I help manage https://www.best.energy/ and we’ve setup a redirect for A unique career - Best.Energy so its goes to a different URL away from the site: https://careers.best.energy/ (Client request) and for some reason, its not working.

The build log isn’t showing any issues and it shows 21 redirect rules processed but i just can’t get /careers to redirect. All other redirects work, i’ve also tried adding in the redirect to netlify.toml but that won’t work and i can’t blame this on caching anymore

hi there, could you share your redirects file with us please?

WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free There is a wetransfer link with the file :slight_smile:

hi there, thanks for that. i see 20 redirect rules in that file, but you mentioned that 21 show as processed?

where is the missing rule, i wonder :thinking:

also, does the redirect work if you move it to the top of the file? i would be interested to see if that changes anything.

Hi! Yes! So we also added a redirect to the netlify.toml file as well to test that but even putting it in there and removing it from _redirects, it doesn’t want to work!

Tried putting it at the top but also didn’t resolve anything.

Here is the .toml file WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free

Hey @EllieRC

It appears there is content at www.best.energy/careers/, so this content is loading instead of the redirect triggering. If you want to redirect regardless of the content at /careers you will need to force the redirect e.g.

/careers    https://careers.best.energy/   301!

or

[[redirects]]
  from = "/careers/*"
  to = "https://careers.best.energy/"
  status = 301
  force = true
1 Like

Hey!

Thank you! ! The 1st one working amazingly!

2 Likes