Skip to main content

Force https question

Comments

6 comments

  • EneTar
    Thank you for your answer, I've just tried but it doesn't redirect from before it fail in the SSL handshake. I guess it can not be done.
    0
  • quizknows
    This is what I use to force https in .htaccess:
    RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
    0
  • cPanelMichael
    Hello :) Most SSL providers allow "non-www" and "www" to work on a default SSL certificate purchased. Is this not the case with your certificate, or are you attempting to redirect between different domain names? Thank you.
    0
  • EneTar
    I purchased a multidomain certificate and didn't know that choosing mydomain.com doesn't cover www.mydomain.com. They need $25/domain to cover all the www versions. So I wanted to redirect the traffic from www to non www through https but I suppose this is not going to happen because of the the ssl handshake taking place before the redirects.. I'm not sure if a reverse proxy in the front could help.
    0
  • cPanelMichael
    Is "Let's Encrypt" an alternative you are open to if the cost is a concern? There's a thread on it at: [How-To] Installing SSL from Let's Encrypt Thank you.
    0
  • EneTar
    Thank you, good link
    0

Please sign in to leave a comment.