I’m trying to make rss feed file available using a url with no file extension.
e.g. https://links-static.markjgsmith.com/feeds/daily/rss
I can’t get the headers to apply.
I found this relevant forum post where op had issues with netlify.toml, but neither config file work in my case.
netlify.toml (in root of project):
[[headers]]
for = "/feeds/daily/rss/index.html"
[headers.values]
Content-Type = "text/xml"
[[headers]]
for = "/feeds/daily/atom/index.html"
[headers.values]
Content-Type = "text/xml"
[[headers]]
for = "/feeds/daily/json/index.html"
[headers.values]
Content-Type = "application/json"
_headers (in root of deployed folder):
/feeds/daily/rss/index.html
Content-Type: "text/xml"
/feeds/daily/atom/index.html
Content-Type: "text/xml"
/feeds/daily/json/index.html
Content-Type: "application/json"
In both cases the files are still text/html files when I download them in a browser.
What am I doing wrong?