Hi, @samwilson, I think you are expecting a placeholder named
:tag which matches
<insert placeholder here >.rss. Instead the placeholder is
:tag.rss and it matches any single path segment URL.
For these paths:
This redirect will match all of everything after the “/” and store it in a placeholder named
:tag.rss. This is what will match of each one above:
A placeholder will match everything between two “/” characters or from a “/” to the end of the path (up to but not including any GET parameters in the URL). It matches a whole “path segment”.
Take the URL below as an example:
The path of the URL above is:
The are three path segments which are:
The redirect rule makes a placeholder named
:tag.rss which matches anything with has only the initial “/” and no other path segments. It does not match URLs with more than one path segment.
For this URL:
The placeholder named
:tag.rss is matching the first path segment which is the “foo” in
/foo. Then on the target side of the redirect, the placeholder of
:tag.rss is replaced with
foo and redirecting to
To summarize, the placeholder cannot match only a portion of a path segment, it must match the whole segment or nothing.