解决方案 »

  1.   

    首先xf.bjzesen.com jh.bjzesen.com kt.bjzesen.com 与 www.bjzesen.com  指向相同的位置。然后<IfModule mod_rewrite.c>
    RewriteEngine OnRewriteCond %{HTTP_HOST} ^xf.bjzesen.com$
    RewriteRule ^(.*)$ xiaofan/ [L]RewriteCond %{HTTP_HOST} ^jh.bjzesen.com$
    RewriteRule ^(.*)$ jinghua/ [L]RewriteCond %{HTTP_HOST} ^kt.bjzesen.com$
    RewriteRule ^(.*)$ zhongyang/ [L]
    </IfModule>
      

  2.   

    非常感谢fdipzone 的回答,4个域名都指向了同一个ip,解释已经生效,但除www外其他的3个访问时出现500错误。
    Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
      

  3.   

    原来是缓存,刷新看得到网页了,但还是会跳转,
    最终出现在网址栏的是http://www.bjzesen.com/zhongyang/这样的。。