Issue setting up redirect

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

  from = "/feeds/rss"
  to = ""
  status = 301

I was expecting requests for:

To be redirected to:

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:

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