[Solved] ISAPI Rewrite not encoding pipe character |
Post Reply |
Author | |
Brett
Groupie Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
Posted: 18-March-2010 at 5:02pm |
Hey guys, someone made a genius post a while back about ISAPI rewrite (I believe it was Sean? Could be wrong - can't find original post now).
Anyways, I applied it to my site and after a couple modifications everything was working fine. However, the categorysearchfields were being messed up because isapi rewrite was encoding pipe ( | ) characters into %307C or something. Anyways, the way to fix it is to add a NE flag to the redirect rule in isapi rewrites httpd.ini (or whatever ini file it is). Here's the code: --------------------------------------------------------------------- # Permanently redirect all pages that were using sub-directories: RewriteRule ^store/pc/(.*)$ $1 [NE,NC,R=301,L] --------------------------------------------------------------------- You'll see that line has NE flag in it now, I assume this means no encoding(?). Anyways, if you're someone who has applied this with the original post's http.ini config info, then you might have ran into the same problem I did with pipes not decoding correctly. The solution is simply to add the NE flag to your redirect rules. Hope this saves someone else some time. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |