Thanks Tim, I tried:

  def check_uri
    redirect_to "https://www.mysite.com"; + request.request_uri if !/
^www/.match(request.host) if Rails.env == 'production'
  end

No luck though, Chrome still shows the SSL error when you load
https://mysite.com
It seems to not being taking check_uri in effect early enough.

Any other approaches or ideas? Heroku wasn't able to offer any advice
other than buying a wildcard cert $$$$



On Dec 2, 10:55 am, Tim Shaffer <[email protected]> wrote:
> On Dec 1, 4:44 pm, CuriousNewbie <[email protected]> wrote:
>
> > Any ideas on how to redirect in a way that avoids the nasty SSL HTTPs
> > invalid warning?
>
> I have never used Heroku, but couldn't you just use "https://"; in the
> redirect instead of request.protocol?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to