How to redirect Drupal site from http to https?
Hello Guys,
Today, We are going to see, how can we redirect our Drupal Site from http to https through .htaccess file with simple three lines of code.
RewriteEngine On
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*)
https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Source: Stackoverflow