redirecting from http://example.com to https://example.mysite.com
This question has been asked in various permutations, but I haven't found the right combination that answers my particular question. The configuration Rails 3.1 (allowing me to use force_ssl in my ApplicationController ) Hosted on Heroku Cedar (so I can't touch the middleware) My SSL certs are registered for secure.example.com I've already added force_ssl to my ApplicationController, like this: # file: controllers/application_controller.rb class ApplicationController < ActionController::Base protect_from_forgery force_ssl end The problem Currently, if a user navigates to http://example.com ,