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.)



Advertisement

Direct AWS
7718 Green Garland Drive
Springfield
Williamsburg

Packers and movers in Ambala
No. 2241/17, 1st Floor, Shopping Building, Mariwala Town,
Chandigarh

Packers and movers in Mohali
No. 2241/17, 1st Floor, Shopping Building, Mariwala Town, 30B, Manimajra
Chandigarh

New DTH DISH HD Connection
Geeta Enterprises 2521 Mari Wala town
Manimajra
Chandigarh

Leo Safe Packers and Movers in Chandigarh
lot-34,1st Floor, New Timber Market,Transport Nagar
Secto 26,Chandigarh
Chandigarh

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

Woodville High School
11 Actil Avenue
St Clair SA 5011
Adelaide

Cedar College
215-233 Fosters Rd Northgate
South Australia 5085
Adelaide

Adelaide High School
West Terrace Adelaide
South Australia 5000
Adelaide

ALARSIN (PHARMACEUTICALS)
A/32 Street No. 3
M.I.D.C. Andheri (East)
Mumbai