Usually your content management system will handle this, but if you by chance are hand-coding a site from scratch, you'll have to take care of the redirection from http to https to make sure the site is secure. Below is the code that needs to go in the .htaccess file.
RewriteEngine On
RewriteEngine OnRewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Comments