Respected Sir/Madam,
How To Force HTTPS redirect on HTTP Encounter, by Editing “.htaccess” file in “/htdocs/” ?
What I tried :
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
This keeps on Looping coz the %{HTTPS}
is always equal to off
even when it’s redirected to https://%{HTTP_HOST}%{REQUEST_URI}
.
So how can I do the same with out looping?
And Successfully redirecting all insecured connection to HTTPS.
Thanking you.
Dark1