2011-09-21 86 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} 
相关问题