如果$_GET是空的,检查RewriteRule

解决方案 »

  1.   

    <?php
    /**test.php*/
    header("Location:http://localhost/test/test1.php?agr1=value1");
    ?>
    <?php
    /**test1.php*/
    print_r($_GET);
    ?>
      

  2.   

    RewriteEngine OnRewriteRule ^list\/([0-9]+)(-?)(.*)\.html$ list.php?fid=$1&page=$3
    RewriteRule ^read\/([0-9]+)(-?)(.*)\.html$ read.php?tid=$1&page=$3
      

  3.   

    实际上,我用了RewriteRule ^test.html$ test2.php?tid=2
    这样一条,然后test2.php里面print了也不行。