mod_rewrite:包含&符号的目标网址

时间:2016-12-08 19:04:22

标签: apache mod-rewrite

我试图让以下RewriteRule工作:

RewriteRule ^/coins-and-currency-counters.html$ /storefrontCommerce/categorybrowse.do?category-name=CHANGERS+%26+CURRENCY+COUNTER&path=&currentPage=1&numResults=10&expanded=false [R=301,B]

然而,规则并没有处理"%26" (或者&符号)正确,而是返回以下URL:

  

/storefrontCommerce/categorybrowse.do?category-name=CHANGERS+6+CURRENCY+COUNTER&path=&currentPage=1&numResults=10&expanded=false

以下问题似乎与我的问题密切相关,但我不了解所提供的解决方案:

How to encode special characters using mod_rewrite & Apache?

如何告诉mod_rewrite不转换"%26"到" 6"?

0 个答案:

没有答案