Answers for "force redirect http to https htaccess"

PHP
0

htaccess redirect https to http

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Posted by: Guest on July-22-2020
0

http to https redirect htaccess

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

Code answers related to "force redirect http to https htaccess"

Browse Popular Code Answers by Language