我试图让以下RewriteRule工作:
RewriteRule ^/coins-and-currency-counters.html$ /storefrontCommerce/categorybrowse.do?category-name=CHANGERS+%26+CURRENCY+COUNTER&path=¤tPage=1&numResults=10&expanded=false [R=301,B]
然而,规则并没有处理"%26" (或者&符号)正确,而是返回以下URL:
/storefrontCommerce/categorybrowse.do?category-name=CHANGERS+6+CURRENCY+COUNTER&path=¤tPage=1&numResults=10&expanded=false
以下问题似乎与我的问题密切相关,但我不了解所提供的解决方案:
How to encode special characters using mod_rewrite & Apache?
如何告诉mod_rewrite不转换"%26"到" 6"?