Mod_rewrite正在转义我的查询字符串!

时间:2010-10-13 19:30:47

标签: regex apache mod-rewrite

我有这个网址:
http://dev.example.com//zina/Artist%20One%20Demo?l=7&img=artist%20pic%20can%20can%20be%20named%20anything.jpg&it=full

它被重写为:
http://dev.example.com/?p=Artist%20One%20Demo&option=com_zina&Itemid=82&l=7&img=artist%2520pic%2520can%2520can%2520be%2520named%2520anything.jpg&it=full

由于这个重写规则:

RewriteRule ^ zina /(.*)$ /?p = $ 1& option = com_zina& Itemid = 82 [L,R,QSA]

有谁知道为什么,以及我如何纠正它?

1 个答案:

答案 0 :(得分:1)

试试NE flag

RewriteRule ^zina/(.*)$ /?p=$1&option=com_zina&Itemid=82 [L,R,QSA,NE]