xxxxxxxxxx
["host"] =~ "^mydomain\.name"
{
url.redirect = ( "^/(.*)" => "http://www.another-domain.name/1" )
}
xxxxxxxxxx
#htaccess
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Note that this should be your first rewrite rule.
xxxxxxxxxx
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
xxxxxxxxxx
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
xxxxxxxxxx
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteRule $ /maintenance.html [R=302,L]