Print Page | Close Window

[Solved] ISAPI Rewrite not encoding pipe character

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Search Engine Optimization
Forum Description: Talk about ways to optimize your ProductCart store for search engines
URL: https://forum.productcart.com/forum_posts.asp?TID=3521
Printed Date: 21-November-2024 at 5:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Solved] ISAPI Rewrite not encoding pipe character
Posted By: Brett
Subject: [Solved] ISAPI Rewrite not encoding pipe character
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net