开发者

Apache RewriteRule: preserve Query String and Add new parameters

开发者 https://www.devze.com 2023-01-10 17:33 出处:网络
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...

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

精彩评论

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