Answers for "redirect http to https by htaccess"

PHP
3

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

Redirect request .htaccess

["host"] =~ "^mydomain.name"
                {
                    url.redirect = ( "^/(.*)" => "http://www.another-domain.name/1" )
                }
Posted by: Guest on August-30-2021

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

Browse Popular Code Answers by Language