Displaying 1 result from an estimated 1 matches for "herok".
Did you mean:
heron
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
...t; ActionController::Base
before_filter :check_uri
def check_uri
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri if !/^www/.match(request.host) if Rails.env ==
''production''
end
Problem with this is since the SSL cert on Heroku is for www.mysite.com,
and not mysite.com, the browser throws the nasty SSL HTTPS invalid
warning.
Any ideas on how to redirect in a way that avoids the nasty SSL HTTPs
invalid warning?
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal...