Redirect is returning a 500 status code

Hi Netlify Support Team!

I am trying to configure a redirect rule in my netlify.toml file but am facing some issues. I’ve followed the Netlify Docs and dedicated support guide, but I have not yet figured out the problem.

I defined the following redirect rule in my netlify.toml file to forward /join visitors to an external non-Netlify website hosted at https://nexus.cs.ucl.ac.uk along with any URL parameters.

[[redirects]]
  from="/join"
  to="https://nexus.cs.ucl.ac.uk"
  status=301
  force=true

Despite following the support docs and seeing confirmation of the redirect rule in the deploy log, I’m encountering a 500 status code when visiting /join through our site’s URL: ubiq-ucl.netlify.app/join.

➜ curl -I https://ubiq-ucl.netlify.app/join/
HTTP/2 500
age: 0
cache-status: "Netlify Edge"; fwd=miss
date: Wed, 17 Jul 2024 13:08:32 GMT
server: Netlify
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-nf-request-id: 01J30CY28Z7T90PH95BKCJR673
content-length: 0

Could you please help me figure out this issue?

You’ve a 200 not a 301. The error we get is: tls: failed to verify certificate: x509: certificate signed by unknown authority