Hi, I hope someone can help or at least tell me if what I’m trying to do is possible or not.
I have a site with pages such as:
I wanted to use a redirect so if anyone tried the http://example.com/Getting-started url, it would put them to the 1.1 version at http://example.com/1.1/Getting-started. The following works for pages that exist:
redirects: /(.*): '/1.1/$1'
However if I purposely try a url for a page that doesn’t exist (such as ‘http://example.com/Getting-started/blah’) the browser window crashes and I see a
ERR_TOO_MANY_REDIRECTSerror and the url looks like:
I thought maybe my redirect regex was too general and could be causing that loop, so I tried a more specific one:
redirects: /(Getting-started.*): '/1.1/$1'
Again this works for “Getting-started” pages that exist, but if the page doesn’t exist it triggers the
Is it possible to do what I’m trying to do? To have a redirect like this without losing the general 404 functionality on urls which match the regex but don’t have a page?
Thanks in advance!