Rewrite的QSA是什么意思?
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 21:08:56
Rewrite的QSA是什么意思?Rewrite的QSA是什么意思?Rewrite的QSA是什么意思?原版的英文:RewriteRuleistodiscardtheexistingquerystrin
Rewrite的QSA是什么意思?
Rewrite的QSA是什么意思?
Rewrite的QSA是什么意思?
原版的英文:
RewriteRule
is to discard the existing query string, and replace it with the newly generated one. Using the [QSA] flag causes the query strings to be combined.
Consider the following rule:
RewriteRule /pages/(.+) /page.php?page=$1 [QSA]
With the [QSA] flag, a request for
/pages/123?one=two
will be mapped to
/page.php?page=123&one=two
. Without the [QSA] flag, that same request will be mapped to
/page.php?page=123
- that is, the existing query string will be discarded.
大意就是: 使用了[QSA]标记
/pages/123?one=two会变成这样/page.php?page=123&one=two
没有使用就只能这样,(就是说.?之后的不包括在(.*)里)