Creating a stable url for a service
by Sefyir from LinuxQuestions.org on (#560FJ)
This might be a XY problem so my problem is this:
I want to have a stable url for a rss feed, so that users can simply add example.com/feed.xml, no matter if the actual rss feed is at myothersite.com/content.xml. The user should have no idea it's actually located at myothersite.com/content.xml
I tried 301 and 302 redirects, but then the stored link ends up being the redirected url.
Code:example.com/feed.xml -> myothersite.com/content.xmlThe rss feed ends up being stored as myothersite.com/content.xml
Should I change myothersite.com/content.feed to something like anewsite.com/rss.xml in the future, it would break for existing users.
My current attempt was with reverse_proxies where this behavior exists, but they're really not designed for single urls like this and I've been unable to figure it out.
Is there a better solution?


I want to have a stable url for a rss feed, so that users can simply add example.com/feed.xml, no matter if the actual rss feed is at myothersite.com/content.xml. The user should have no idea it's actually located at myothersite.com/content.xml
I tried 301 and 302 redirects, but then the stored link ends up being the redirected url.
Code:example.com/feed.xml -> myothersite.com/content.xmlThe rss feed ends up being stored as myothersite.com/content.xml
Should I change myothersite.com/content.feed to something like anewsite.com/rss.xml in the future, it would break for existing users.
My current attempt was with reverse_proxies where this behavior exists, but they're really not designed for single urls like this and I've been unable to figure it out.
Is there a better solution?