Cloud Hosting, Reseller Hosting, Shared Hosting, VPS Hosting

HTTP to HTTPS

SSL will protect your site’s information , although generally when we call your website without https it will not go through https(ssl) , thus you need to perform following actions to direct your web traffic to https.

create a .htaccess file under your document root ( most commonly there will be a .htaccess)

put the rule below on your .htaccess.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This rule will be redirecting all your http traffic to https. Now everybody that visits your site from a non https link will be redirected to the https version of that page.

One Comment

  1. Funny ViheT…odank you for sharing superb informations. Your website is so cool. I’m impressed by the details that you have on this web site. It reveals how nicely you understand this subject. Bookmarked this web page, will come back for more articles. You, my fri…

Leave a Reply

Your email address will not be published. Required fields are marked *