2011-09-21 84 views
0

我的網址是像的.htaccess重寫規則被丟棄我的查詢字符串

http://172.16.3.97:82/shop/t-shirts/full-zip-sweatshirt?options=367:731,368:737,369:741&custom_inscription=test 

我寫像

RewriteRule ^shop/t-shirts/([a-zA-Z0-9\[email protected]]+)\?*$ shop/product?path=35&product_id=$1&test=$2 

重寫規則,我只在full-zip-sweatshirt$_GET,但我沒能得到其他參數。

我應該如何在.htaccess中寫規則?

回答

2

試圖改變你的重寫規則如下:

RewriteRule ^shop/t-shirts/([[email protected]]+)\?*$ shop/product?path=35&product_id=$1&test=$2 **[L,QSA]** 

標誌「QSA」原始查詢字符串添加到您的查詢

或者,也許這其中也應該有所幫助:

RewriteRule ^shop/t-shirts/([[email protected]]+)\?*$ shop/product?path=35&product_id=$1&test=$2&%{QUERY_STRING} 
相關問題