2

I'm trying to get the following RewriteRule to work:

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]

However, the rule doesn't handle the "%26" (or ampersand) correctly, and instead returns the following URL:

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

The following question seems closely related to my problem, but I don't understand the solutions offered:

How to encode special characters using mod_rewrite & Apache?

How do I tell mod_rewrite to not convert the "%26" to "6"?

Community
  • 1
  • 1
Michael Sobczak
  • 1,045
  • 1
  • 24
  • 45

0 Answers0