查询字符串作为htaccess中的参数

时间:2014-06-04 14:36:41

标签: php apache .htaccess url mod-rewrite

我正在尝试将查询字符串作为参数传递到我的htaccess中,这是示例:

我收到类似的参数:

#frm=q%3D%26Page%3D1%26LotTypes%3DV%26RadioGroup%3DLocation%26PostalCode%3D%26

,网址如下:

www.mydomain.com/parameter1/parameter2/parameter3/#frm=q%3D%26Page%3D1%26LotTypes%3DV%26RadioGroup%3DLocation%26PostalCode%3D%26

我有.htaccess个文件:

RewriteRule ^busquedas/(\w+)/(.+)/(\w+)/(\w+)/(\w+)/(\w+)?$ detallesCtlr.php?make=$1&model=$2&yearFrom=$3&yearTo=$4&page=$5&filter=$6 [L,QSA]

所以我的想法是将查询字符串的最后一个参数“$ filter”作为参数传递。想法?

0 个答案:

没有答案