我正在备份包含数千个硬编码URL的电子商务网站,我想从中删除,
,因此,如果单击:
http://example.com/stock/tyres/?filter_width=205&filter_profile=55&filter_rim-size=16&filter_speed-rating=vr&filter_manufacturer=,bridgestone
我将被带到:
http://example.com/stock/tyres/?filter_width=205&filter_profile=55&filter_rim-size=16&filter_speed-rating=vr&filter_manufacturer=bridgestone
我尝试使用此代码删除逗号,但是它不起作用:
RewriteRule ^(.*),(.*)$ /$1$2 [L,R=301]
有什么建议吗?