what is the best way to redirect http requests to an https url?

WL

Asked by Wesley Lacroix

Post Date : Mon, 05/01/2017 - 11:50

Categories : Website Analysis

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