Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Suppose you have a site: www.example.com, with a URL alias for example.com then requesting a URL like:
example.com/url-with-%25-percentage-symbol
then this get 301'd to:
www.example.com/url-with-%2525-percentage-symbol
As the percent symbol is escaped by the mod_rewrite.
The solution is to use the NE flag in the RewriteRule directive in the htaccess.
Is this the correct solution? (It works btw)
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThis seems reasonable to me and is the intended use of NE. I've no problem with that.
I'll leave to anarcat to weigh in if he foresees any problem here
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedAnarcat mentioned in IRC that it looked fine.
Comment #3
Steven Jones CreditAttribution: Steven Jones commentedFix pushed to all branches.