Revert default RSS feed URL after customizing routes

I am using Ghost (Pro) and I did some simple customization to my routes.yaml as follows:

routes:
  /:
    template: home
    data: page.home

collections:
  /posts/:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

After doing this, I realized that the default RSS feed for all posts moved from /rss/ to /posts/rss. How do I revert that URL to /rss/ while keeping my /posts/ routing? I did read this but I don’t want to use a custom template. The default one is good enough for me. How do I do this?

Any help on this please?

Any assistance for this please?

Can anyone from Ghost assist me with this please?

You can try to follow the article you posted to define your own route and simply copy the default rss template and use that, or you can change your route setup so that the default collection is / and make the /posts/ a channel instead.

1 Like

Another approach could be to add a redirect so /rss/ redirects to /posts/rss/

3 Likes

Oh nice. So, it would be a 301 redirect as described here?

Oh channels are great. Maybe I’ll look to do that instead. Thanks for the tip!

Just wanted to say I used this channels trick yesterday to fix my routing problem and it worked perfectly, thank you! Routes file looks like this:

routes:
  /blog/:
    controller: channel
    template: blog

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

With this /blog/ could still show all the posts but the homepage would still be regarded as the main collection page, so /rss would still work