ERR_TOO_MANY_REDIRECTS on collection route

If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be closed.

If you aren’t running the latest version of Ghost, the first thing we will ask you to do is update to the latest version of Ghost.

  • What’s your URL?

  • What version of Ghost are you using? 4 i guess

  • How was Ghost installed and configured?
    Here is my routes.yaml

    template: home
    data: page.home

    permalink: /article/{slug}/
    filter: primary_tag:article
    data: page.article

    permalink: /guide/{slug}/
    filter: primary_tag:guide

    permalink: /changelog/{slug}/
    filter: primary_tag:changelog
    data: page.changelog

  (nothing here)

Here’s the url Site Unavailable

I also set up my theme to have article.hbs, guide.hbs and changelog.hbs, as well as the corresponding pages for data.

The Guide and Article collection pages are working as expected. Only for the changelog page, I encountered the error.

Hi there! If you’re having any issue with a Ghost(Pro) site, please drop the Ghost(Pro) support team an email at and they’ll be more than happy to give you a hand directly :slight_smile:

From initially looking I suspect you’ve suffered the same fate as me, the redirects feature uses regex. So you’ll need to prefix the from value with ^, like so:

    ^/page-url/: /collection/page-url/

The ^ ensures the URLs it’s looking for begins with that path, if it’s not there then technically it would match the new path and begin the redirect again.

Hope this helps!

1 Like

Thanks for your reply. I’m not using any redirects via the redirect.yaml though, it’s currently just an empty array. I’m only using routes.yaml.

It looks like this page has been cached for 30ks, have you tried disabling your cache while configuring the routes?

1 Like