Force HTTPS (Removing the Not Secure warning from Chrome and Safari)

Your web hosting account with StormWeb includes a TLS/SSL certificate for use with HTTPS.  Before forcing a HTTPS connection to your web site, you will first need to test your site to make sure that it loads correctly using https://.  Simply visit https://www.example.com (where example.com is your domain name).

If you do not get a pad lock icon in your web browser's address bar, there is likely an issue with mixed content (secure and non-secure content).  We recommend the free tool at https://www.whynopadlock.com to help diagnose the problem.  After you work out the mixed content issues, you can proceed.

You will need to edit or create a file called  .htaccess (dot htaccess) in your public_html folder.  Add the following lines to the top of this file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
Now all visitors to your site will be taken to the secure version.
 

  • https, ssl, tls
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Enable HTTPS on my Web Site

We include a free SSL/TLS certificate with all web hosting packages.  With 24 hours of hosting...

Changing PHP Version

You can choose which version of PHP you're using quite simply.  First login to your cPanel, then...

Receiving Spam from my Web Site Contact Form

If you're receiving spam from your web site's contact form, it's likely that you don't have a...

My Web Site has been Hacked

If you believe your web site has been hacked.  Please open a support ticket immediately.  Someone...