Skip to content

SSL redirect does not save path #74

Closed
@KaoruDev

Description

@KaoruDev

I have this in my config/production.rb file:

  config.middleware.insert_before(Rack::Runtime, Rack::Rewrite) do
    r302 %r{.*}, 'https://www.mydomain.com$&', :scheme => 'http'
  end

I expect when i type http://www.mydomain.com/foo/bar to be redirected to https://www.mydomain.com/foo/bar but instead get redirected to https://www.mydomain.com/

how can I pass the path / query string ( if any ) to ssl endpoints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions