buy cheap web hosting


Force SSL on all pages using htaccess

PHP

How to force SSL on all pages using htaccess ?



Mostly as per SEO no duplicate page URL will present into any website. Google will treat two different URL if they use http://example.com and https://example.com .

You can easily force the website pages to use the SSL https:// by adding below code under .htaccess file

RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]




Get digital SSL Certificates in only INR 1500 click here for more details now .


Bookmark and Share




Gallery

Comments



Submit Reviews:


(Enter the characters seen on the image below.)



Promotional Ads

Advertisement

Packers and Movers in Chandigarh - Care Home
Shop No. 2241/15, 1st Floor, Mari Wala Town, Manimajra
Chandigarh

Mohinder GST TDS TAN Consultant Panchkula
12 Maheshpur Sector 21 Panchkula
Panchkula