Isapi额外的url变量

时间:2014-03-07 10:38:37

标签: rewrite isapi

我希望在我的网址中添加更多网址变量...无论之后有什么?我希望将其作为urls变量检索谢谢你!

RewriteRule ^(.*).html?(.*)$ products.cfm?categ=$1&urls=$2   [NC,L]
RewriteRule ^products.cfm?categ=(.*)&urls=(.*)$ (.*).html?(.*) [NC,R=301,L]

1 个答案:

答案 0 :(得分:0)

RewriteCond %{QUERY_STRING} ^condition=(\d+)&maxprice=(\d+)&minprice=(\d+)&persons=(\d+)&maxyear=(\d+)&minyear=(\d+)&order=(\d+)$ [NC]
RewriteRule ^category/(.*).html$ products.cfm?categ=$1&condition=%1&maxprice=%2&minprice=%3&persons=%4&maxyear=%5&minyear=%6&order=%7?   [NC,L]