I want to set up a constant redirect of each path starting with /articles to a similar path starting with /blog .
I know how to redirect paths individually in routes, for example.
match "/articles/" => redirect("/blog/")
However, if I also want to redirect paths such as /articles/:id and /articles/category/:id , etc., I also need to have explicit redirects.
I hope there is a way to redirect all such paths, present and future, in one fell swoop.
I understand that I could do this relatively easily in the controller with before_filter , but I believe that this behavior applies to routes, and I hope to keep it there.
hoffm source share