Issue setting up redirect

I am having an issue setting up a 301 redirect. Here is the netlify.toml entry:

[[redirects]]
  from = "/feeds/rss"
  to = "https://markjgsmith.com/feeds/podcast/feed.xml"
  status = 301

I was expecting requests for:

https://s8qj.netlify.app/feeds/rss

To be redirected to:

https://markjgsmith.com/feeds/podcast/feed.xml

But that isn’t happening.

Why don’t the requests get redirected?

Hi @mjgs,

Thanks for reaching out!

Have you seen Netlify’s Support Guide on debugging redirects?

I strongly suggest you give it a thorough read through and see if this fixes your problem:

Could you try adding force = true under the status = 301 and see if that resolves the issue?

If you’re still having issues, could you provide a link to your Netlify site and we’ll continue to troubleshoot. Thanks!

Thanks @Melvin I’ll have a read through the doc you linked.

Here’s the site:
https://s8qj.netlify.app

The RSS feed that I’m trying to redirect is accessible from the nav.

@Melvin Reading the docs, it looks like it’s not working because the original file is still in the source location. The docs say to force the redirect in this situation.

I first tried using 300! which is what the docs you sent say. That didn’t work, so I tried what you wrote in your previous post, using force = true, and that appears to have worked.

Hi, @mjgs. Thank you for the follow-up and there is an explanation.

Forcing the redirect using the status code followed by an exclamation mark (like 301!) is the syntax for the file _redirects only. It doesn’t work in netlify.toml.

The solution (which you already stated above) is using force=true as that is the netlify.toml syntax.

@luke Thanks for your help