How to force all web traffic to use HTTPS ?

SSL Certificate Properly Installed & Working Require, To Use It.
If you've no 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 the below steps to force all web traffic to use HTTPS for your website.

Step 1: 
Create/Edit a file .htaccess in the document 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 the file into your hosting server and you did!


After this, your is the site opens with https:// when someone opens it without https.


We hope you like this method.

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


Помог ли вам данный ответ?

 Распечатать статью

Также читают

How to start own Internet radio station?

Internet Radio HostingStart your very own radio station online - [VIEW PLANS] Effectively make...

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 INCREASE FILE UPLOAD SIZE IN ZPANEL / SENTORA

Increasing Max Upload Size in ZPanel / SENTORA / Linux VPS / CentOs 6 ZPanel / Sentora server...

How to change MySQL mode / Remove ONLY_FULL_GROUP_BY?

How to change MySQL mode / Remove ONLY_FULL_GROUP_BY?Method 1:Remove ONLY_FULL_GROUP_BY from...