<IfModule mod_rewrite.c>
RewriteEngineOn
RewriteBase/
#将www.jb51.net跳转到www.jb51.com
RewriteCond%{HTTP_HOST}^www\.jb51\.net$[NC]
RewriteRule^(.*)$https://www.jb51.net/$1[R=301,L]
#将huanhang.net跳转到www.jb51.com
RewriteCond%{HTTP_HOST}^huanhang\.net$[NC]
RewriteRule^(.*)$https://www.jb51.net/$1[R=301,L]
</IfModule>