On Jun 24, 2010, at 7:56 PM, Jesse wrote: > http://github.com/jtrupiano/rack-rewrite/issues/#issue/7
I've replied inline on GitHub: http://github.com/jtrupiano/rack-rewrite/issues/#issue/7/comment/288774 > ## config/environments/production.rb (fails) > config.gem 'rack-rewrite', '1.0.0' > require 'rack/rewrite' > config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do > r301 %r{.*}, "http://#{ENV['SITE_URL']}$&", :if => Proc.new { | > rack_env| > rack_env['SERVER_NAME'] != ENV['SITE_URL'] > } > end While yours wasn't a problem with Rack::Rewrite, I'd also like to mention that Rack::CanonicalHost is simpler to configure if it's all you need: http://rubygems.org/gems/rack-canonical-host http://github.com/amanikids/website/blob/31650d31d93bddc41e4e13b7b80df90638451e02/config/environment.rb All the best, -- Matthew -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
