Plus signs replaced with %252520 in query string


We recently migrated one of our ¬†websites at work to a new platform ¬†and discovered that Nextopia was encoding plus (+) signs with “%252520”, which completely broke our rewrites.

A simple fix was to include this rewrite:

RewriteCond %{QUERY_STRING} (.*?)%(25)+20(.*?%(25)+20.*)
RewriteRule ^ %{REQUEST_URI}?%1+%3 [N]
RewriteCond %{QUERY_STRING} (.*?)%(25)+20(.*)
RewriteRule ^ %{REQUEST_URI}?%1+%3 [L,R=301]

The solution was provided here:

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments Protected by WP-SpamShield Spam Blocker