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
html
extension. - Even if you could create an alias for the
xml
file, thexml
consumer (browser, aggregator, etc.) wouldn’t honor themeta http-equiv
redirect. Or to put it another way, there’s no provision for content refresh/redirect with XML.