Gett%3f在我的网址末尾

时间:2014-03-05 15:48:37

标签: .htaccess

我一直在我的网址末尾获得%3F你可以jelp

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/Merchant2/Merchant.mvc$
RewriteCond %{QUERY_STRING} ^Screen=CTGY&Store_Code=MTS&Category_Code=Precision_Measuring_Tools (.*)$
RewriteRule ^(.*)$ http://www.mansontool.com/merchant2/merchant.mvc?Screen=CTGY&Store_Code=MTS&Category_Code=PrecMeasTools [R=301,L]

1 个答案:

答案 0 :(得分:0)

使用NE标记(No Escape)尝试此规则:

RewriteEngine on
RewriteCond %{QUERY_STRING} ^Screen=CTGY&Store_Code=MTS&Category_Code=Precision_Measuring_Tools
RewriteRule ^Merchant2/Merchant\.mvc$ http://www.mansontool.com/merchant2/merchant.mvc?Screen=CTGY&Store_Code=MTS&Category_Code=PrecMeasTools [R=301,L,NE]