Answers for "how to automatically redirect http to https on apache servers cencos"

2

apache redirect http to https

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
Posted by: Guest on December-21-2020

Code answers related to "how to automatically redirect http to https on apache servers cencos"

Browse Popular Code Answers by Language