<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{REQUEST_URI} !^/tz.php //访问tz.php 的 访问的也不进行443跳转
RewriteCond %{SERVER_NAME} !^xxx.xxx.com$ //域名xxx.xxxx.com 访问的也不进行443跳转
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R] //强制跳转到443
RewriteCond %{HTTP_HOST} ^aaaa.aaaa.com$ [NC]
RewriteRule ^(.*)$ https://bbbbb.bbbbb.com/$1 [R=301,L] //通过域名aaaa.aaaa.com 访问的强制跳转到bbbbb.bbbbb.com
RewriteCond %{HTTP_HOST} ^xx.xxx.xxx.xxx$ [NC] //访问ip是xx.xxx.xxx.xxx 也强制跳转到bbbbb.bbbbb.com
RewriteRule ^(.*)$ https://bbbbb.bbbbb.com/$1 [R=301,L]
</IfModule>