views:

106

answers:

0

Hi all,

Basically I'm importing a bunch of pages that have ampersands in the title, from Mediawiki. These are encoded as %26. Drupal, for various reasons, has decided double encode the url it to have it become %2526. I simply can't create the alisis within Drupal so I have to use htaccess

tl;dr: I need example.com/something_%26_else into example.com/something_%2526_else. This is what I have as my rule so far as RewriteRule ^w/([^%26]+)\%26(.*)$ w/$1\%2526$2 [R=301]

I appreciate the help.

All the best, Patrick