Assuming you want this output structure…
public/
├── 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:
- With Hugo, you can only create aliases with an
htmlextension. - Even if you could create an alias for the
xmlfile, thexmlconsumer (browser, aggregator, etc.) wouldn’t honor themeta http-equivredirect. Or to put it another way, there’s no provision for content refresh/redirect with XML.