Answers for "How do I redirect http to htaccess https?"

PHP
0

redirect http to https htaccess

#htaccess

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Posted by: Guest on August-27-2020
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

redirect to http to https .htaccess

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

Code answers related to "How do I redirect http to htaccess https?"

Browse Popular Code Answers by Language