Replaced html redirects with 301 redirects using Rack::Rewrite