How to Redirect to SSL Properly
Hey there,
I was wondering how I can use cPanel to make http:// automatically redirect to https://. For example, if someone enters http://billing.domain.net, they'll be redirected to https://billing.domain.net. Basically wanting a way to force https://.
Thanks,
Christian
-
I have later discovered that you just need to add this simple code to your .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 0 -
Hello :) You can try using the following rule in your .htaccess file within the public_html directory: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Thank you.0
Please sign in to leave a comment.
Comments
2 comments