Answers for "how to set your website to redirect to https version"

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 set your website to redirect to https version"

Browse Popular Code Answers by Language