ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Search Engine Optimization
  New Posts New Posts RSS Feed - [Solved] ISAPI Rewrite not encoding pipe character
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Solved] ISAPI Rewrite not encoding pipe character

 Post Reply Post Reply
Author
Message
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post Topic: [Solved] ISAPI Rewrite not encoding pipe character
    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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.