想让这个连接http://127.0.0.1/test.php?id=1地址在地址拦跳转显示为http://127.0.0.1/1.html  怎么实现?

解决方案 »

  1.   

    RewriteEngine On
    RewriteRule /([0-9]+)\.html /test.php?id=$1
      

  2.   

    是啊,我也是写了这个,但是我的地址拦还是显示http://127.0.0.1/test.php?id=1,我是想让原来的地址拦出先http://127.0.0.1/test.php?id=1 这个的时候自动变成http://127.0.0.1/1.html 这样子
      

  3.   

    自动变成?
    echo "<meta http-equiv='refresh' content='0;url:".$_GET['id'].".html'>";
      

  4.   

    恩,就是说页面上用http://127.0.0.1/1.html 显示来代替http://127.0.0.1/test.php?id=1这个,刚上面的代码用了有点问题