我已经写了下面的重写规则的正常工作参数时没有参数(无页码,每页没有产品,没有排序顺序等)重写规则,以保持
RewriteRule ^(?!bench/).*cat_2.html(\.[a-z]{3,4})?(.*) "http\:\/\/www\.mysite\.co\.uk\/bench\/cat_2\.html\?mode\=allBrands" [R=301,L]
这确保了Google对Google搜索结果进行了优化。所以
被改为
mode=allBrands
将始终设置。
所以,如果我点击一个链接去
它被重定向到
这是第一页。
任何帮助将是伟大的。
可能重复http://stackoverflow.com/questions/4071155/keep-url-parameters-with -htaccess-rewrite) – 2013-01-13 05:02:06