域名根目录下新建 .htaccess , 添加
RewriteEngine on
#不显示index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#指定80端口域名 www.fangyuwang.com 跳转到 http://www.fangyuwang.com
RewriteCond %{HTTP_HOST} ^www.zzhidc\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ http://www.fangyuwang.com/$1 [R=301,L]