开发者

get query params in url

I am trying to obtain the following redirect:

http://xpto.com/aaaa/bbb/?gid=1&tid=2&cid=3 => http://xpto.com/?pt=nnnn&gid=1&tid=2&c开发者_JS百科id=3

I am using the following rule:

RewriteRule ^aaaa/bbb/\?(.*)$ ?pt=candidatura&$1 [L]

But it is not working.

Can someone help me?

Thanks, ED


I was missing the [QSA] flag.

Here it goes:

RewriteRule ^aaa/bbb/(.*) http://xpto.com/?pt=sss$1 [QSA]

Hope it helps someone.

ED

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜