# ssl redirect
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# redirect to other domain
RewriteEngine on
RewriteCond %{HTTP_HOST} ^aaa.com
RewriteRule ^(.*)$ https://bbb.com/$1 [R=301,L]
php_flag display_errors On