Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- htaccess won't catch rewrite URL's that include a % character


jdMorgan - 7:24 pm on Feb 7, 2011 (gmt 0)



# Replace encoded "?" characters with literal "?" characters
RewriteCond %{THE_REQUEST ^[A-Z]+\ /([^%]*)\%(25)*3[fF]([^\ ]+)\ HTTP?
RewriteRule ^ http://www.example.com/%1?%3 [R=301,L]

The (25)*3[fF] allows for multiply-encoded question marks, encoded using upper- or lower-case "F".

Jim


Thread source:: http://www.webmasterworld.com/apache/4260794.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com