RSS URL or an alias


I’m currently generating a feed for each taxonomy term and end up with a feed located at:

I’d like to make this available at the site root:

I thought an alias might help but it doesn’t seem to be working with:

title: mysql_feed
url: /mysql_feed.xml
  - /tags/mysql/feed.xml

Or is there a better way to build that particular taxonomy term RSS feed at the site root?

Assuming you want this output structure…

├── tags/
│   ├── foo/
│   │   ├── index.html
│   │   └── index.xml
│   └── mysql/
│       ├── index.html
│       └── index.xml
└── mysql_feed.xml   <-- Duplicate of (or redirect to) public/tags/mysql/index.xml

…then you should configure a redirect on your production server.

A Hugo alias will not work because:

  1. With Hugo, you can only create aliases with an html extension.
  2. Even if you could create an alias for the xml file, the xml consumer (browser, aggregator, etc.) wouldn’t honor the meta http-equiv redirect. Or to put it another way, there’s no provision for content refresh/redirect with XML.

You cn add the link to your feed in the home page, so feed reader can find it

Ah, that’s a shame. It was a legacy feed location feeding some other processes that necessitated having it in that location. The feed location had to be updated on the other processes.

Thank you all for the help! :smiley: