我用rewrite转跳:
RewriteEngine on
RewriteRule ^/list\.php?$ http://bbs.xx.com
没有问题,但
RewriteEngine on
RewriteRule ^/list\.php?cid=56$ http://bbs.xx.com后面加点id之类的,
再浏览器里输入 list.php?cid=56 就找不到。。这个地址到底能不能写转跳的?

解决方案 »

  1.   

    用过了的。没用
    而且如果是
    RewriteRule ^/list\.php?$ http://bbs.xx.com
    的话,输入list.php?转跳后http://bbs.xx.com后面还会出现一个?
      

  2.   

    那个是QUERY_STRINGRewriteEngine on
    RewriteCond %{QUERY_STRING} ^cid=56
    RewriteRule ^list\.php http://bbs.xx.com
      

  3.   

    多谢指点。不过好像还是不行。我查查QUERY_STRING去~
      

  4.   

    RewriteEngine on
    RewriteRule ^/list\.php?cid=(\d+)$ http://bbs.xx.com/$1 [R , L]
    RewriteRule ^/list\.php http://bbs.xx.com [R , L]