UrlRewrite只重写URL部分 不重写$_GET部分~可以变通一下, 这样:
RewriteEngine On
RewriteRule ^(\d{4})\.html$ 1000.php [NC,L]然后在1000.php里用 $_SERVER['REQUEST_URI'] 或者 $_SERVER['REDIRECT_URL'] 可以取得1000.html

解决方案 »

  1.   

    加个标志就行了
    RewriteRule ^/(\d{4}).html$ /1000.php?id=$1 [QSA]
      

  2.   

    一直不明白RewriteRule 最后的[NC,L][QSA]这些具体代表的是什么意思谁能解释一下
    或者给个参考的地址
      

  3.   

    QSA Query String AppendThis flag forces the rewriting engine to append a query string part in the substitution string to the existing one instead of replacing it. Use this when you want to add more data to the query string via a rewrite rule.
      

  4.   

    谢谢楼上各位。可我还是有一点不明白。 RewriteRule 后的 [] 中各字符的含义。 为什么我 RewriteRule 后一定要加 [PT] ,否则直接显示源代码。 我的问题是 [PT, QSA] 这样解决的。
      

  5.   

    我把各个标志翻译了一下,你自己看吧。
    http://www.tianjiaonet.com/blog.php?aid=22&BlogID=1