Rack-rewrite_root_filter is a project mainly written in Ruby, it's free.
Rack middleware to rewrite the links on both the request and the response.
404: Not Found