How to force all web traffic to use HTTPS ?

SSL Certificate Properly Installed & Working Require, To Use It.
If you've no any SSL Certificate then you need to buy it, Just Click Here To Buy SSL Certificate.

If you've valid and installed SSL then just follow bellow steps to force all web traffic to use HTTPS for your website.

Step 1: 
Create/Edit a file .htaccess in the documbent root (public_html / www folder)
of your hosting account and put the code below inside .htaccess file :

#----------------------------------------------------------
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
#----------------------------------------------------------




Step 2: Save / upload file into your hosting server and you done !


After this your is site open with https:// when someone open it without https.


We hope you like this method.

If it's helpful to you then, please share it.


Was this answer helpful?

 Print this Article

Also Read

How to redirect domain with www ?

Step 1:  Create/Edit a file .htaccess in the documbent root (public_html / www folder)of your...

How to redirect old domain to new domain ?

Step 1:  Create/Edit a file .htaccess in the documbent root (public_html / www folder)of your old...

How to redirect old URL to new URL ?

Step 1:  Create/Edit a file .htaccess in the documbent root (public_html / www folder)of your...