what is the best way to redirect http requests to an https url?
WL
1 Answers 0 Views
Using the below code in .htaccess file redirects all HTTP requests to HTTPS-
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Answered Date 09-May-17 by Marie Safel
Login to comment