本帖最后由 youkuku001 于 2011-01-18 17:53:11 编辑

解决方案 »

  1.   


    其实不需要这么麻烦,最简单可行的方法就是在程序中判断URL地址,定好跳转规则,这样就可以实现不同的域名访问不同的文件了,此外同样的原理还可以实现禁止某些域名访问某些文件
      

  2.   

    # Block external access to the httpd.ini and httpd.parse.errors files
    RewriteRule /httpd(?:.ini|.parse.errors).* / [F,I,O]
    # Block external access to the Helper ISAPI Extension
    RewriteRule .*.isrwhlp / [F,I,O]
    #二级域名RewriteCond Host: (?!tao|www)([^.]+).xxx.cn
    RewriteRule ([^.]+) /search\.php\?keyword=$1&catid=catid