Answers for "how to add a redirect from http to https"

1

how to automatically redirect to https

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Posted by: Guest on July-02-2020

Code answers related to "how to add a redirect from http to https"

Browse Popular Code Answers by Language