I have a site with static file RSS feeds. The files are in the right place, and as far as I can tell I have added the correct headers directives in netlify.toml yet when I try to open the URLs in a browser, the domain disappears and the browser returns an error.
Here are the feeds:
For example when I try to open the rss blog feed:
https://markjgsmith.com/feeds/blog/rss/feed.xml
the browser ends up trying to open:
https://blog/rss.markjgsmith.com/feeds/feed.xml
Here are the files after the build completes:
[drwxr-xr-x] dist/site/feeds
├── [drwxr-xr-x] blog
│ ├── [drwxr-xr-x] atom
│ │ └── [-rw-r--r--] feed.xml
│ ├── [drwxr-xr-x] json
│ │ └── [-rw-r--r--] feed.json
│ └── [drwxr-xr-x] rss
│ └── [-rw-r--r--] feed.xml
├── [-rw-r--r--] index.html
├── [drwxr-xr-x] links
│ ├── [drwxr-xr-x] atom
│ │ └── [-rw-r--r--] feed.xml
│ ├── [drwxr-xr-x] json
│ │ └── [-rw-r--r--] feed.json
│ └── [drwxr-xr-x] rss
│ └── [-rw-r--r--] feed.xml
└── [drwxr-xr-x] podcast
└── [-rw-r--r--] feed.xml
Here are the netlify.toml header directives:
# Blog feeds
[[headers]]
for = "/feeds/blog/rss/feed.xml"
[headers.values]
Content-Type = "text/xml"
[[headers]]
for = "/feeds/blog/atom/feed.xml"
[headers.values]
Content-Type = "text/xml"
[[headers]]
for = "/feeds/blog/json/feed.json"
[headers.values]
Content-Type = "text/xml"
# Linkblog feeds
[[headers]]
for = "/feeds/links/rss/feed.xml"
[headers.values]
Content-Type = "text/xml"
[[headers]]
for = "/feeds/links/atom/feed.xml"
[headers.values]
Content-Type = "text/xml"
[[headers]]
for = "/feeds/links/json/feed.json"
[headers.values]
Content-Type = "text/xml"
# Podcast feed
[[headers]]
for = "/feeds/podcast/feed.xml"
[headers.values]
Content-Type = "text/xml"
What is causing this behaviour and how can I fix it?