开发者

Apache RewriteRule: preserve Query String and Add new parameters

I'm not sure whether this is the origin of the bug I'm trying to solve, however, I'm still not sure I correctly understood Apache doc...

Let's say I wanna redirect

toto.开发者_开发问答page?a=2&c=546EUE&stuff=blah

to

index.page?view=Blahblah/Toto&a=2&c=546EUE&stuff=blah

Of course, if there was other parameters, they should be preserved too.

Is the following rule correct?

RewriteRule ^toto\.page$    index.page?view=Blahblah/Toto     [NC,QSA,L]


Yes. That is correct.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜