I'm using the excellent Rack Rewrite gem in one of my Rails projects.
I used it to rewrite http requests to https://whatever.tld. Here's the snippet from config/application.rb:
config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
r301 %r{.*}, 'https://whatever.tld$&', :scheme => 'http'
end
...which works nicely.
However, now every time I boot up ANY rails app in dev, it kicks me off to https://whatever.tld
Does anyone know how to tell the middleware not to use that rule any more?
Thanks in advance!