Redmine 0.9.0 and duplicate content issue

A couple of hours ago I upgraded the code subdomain from Redmine 0.8.0 to Redmine 0.9.0, currently available in pre-beta.

Redmine 0.9.0 offers tons of improvements but one among all forced my decision to upgrade without waiting for a final release: Rails 2.3.5. Redmine 0.8.x is built on Rails 2.1.0 and there seems to be some kind of weird Rails-Redmine-Passenger-Ruby EE memory leaks.

With the new release, Redmine has changed the most part of its URLs. The development team basically migrated all routes to a more RESTful-oriented architecture. They did a wonderful job, unfortunately they probably chose the worst way to ensure backward-compatibility: duplication.

All the old routes are still available along with the new ones and this can cause several duplicate content issues. To patch the problem, I configured some Apache redirection rules in order to permanently redirect the old URLs to the new ones.

The gist doesn’t pretend to solve all issues. It’s just a quick and (quite) dirty fix.

From Redmine side, I would have setup a Rails Metal to redirect all the old URLs to the new ones. This is not as efficient as relying on the web server, but this is compatible with any user environment.

Feel free to fork, clone and update the gist. After all, this is a Git repository!