Answers for "redirect .htaccess rulse"

1

https redirect htaccess

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

Redirect request .htaccess

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

Browse Popular Code Answers by Language