1 Answer
1

Depends on your site, the traffic, the number of hits on those rewrite rules - in all likelihood the performance matters a lot less than the maintainability.

Maintainability - use what you know, and what your developers know. Apache's rewrite syntax is easy to get wrong, and tends to be quite Write-Once-Read-Never. Nginx's is quite nice, but still a new DSL for you and your devs to learn. rack-rewrite is the inverse of Apache, it's actually hard to make a mistake because it's so simple (I think it's simpler than routes.rb)

This is just about the exact answer I was about to write :) routes is easiest to maintain and performance will be Fine. you can make a 'legacy-rewrites.rb' file in lib and include it in routes.rb, that way it won't clutter up your main app config.
–
John BachirApr 22 '11 at 15:39