Skip to main content

How to Redirect to SSL Properly

Comments

2 comments

  • Drumrocker365
    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
  • cPanelMichael
    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.