How to force all web traffic to use HTTPS ? Print

  • force all web traffic to use HTTPS, SSL, force to use SSL, force to use HTTPS, file for SSL, .htaccess edit for SSL, secure web connection, SSL Certificate
  • 8

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.



Was this answer helpful?

« Back