标签: 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]
有谁知道为什么,以及我如何纠正它?
答案 0 :(得分:1)
试试NE flag:
RewriteRule ^zina/(.*)$ /?p=$1&option=com_zina&Itemid=82 [L,R,QSA,NE]