2012-06-12 29 views
-1

可能重复:
Rewriting URL that contains question markURL重写之后,有什么发生在GET请求

喜的URL一个noob问题重新写

如。

Http://localhost/example/index.php?url=test/test&id=123 

一个URL重写后的URL成为

Http://localhost/example/test/test 

只是想知道,如果服务器端的页面仍然会得到$_GET['id']价值和$_GET['url']价值?

感谢

+1

提供您的重写规则。 – Josh

+0

只是一个虽然我还没有规则。谢谢 – Bruce

回答

3

你可以得到GET PARAMS如果你[QSA] flag rewrited保留现有的查询参数,在其他的方式,没有。因为RewriteRule上的正则表达式不针对查询参数运行。