| Posted: 18 September 2008 at 5:30pm | IP Logged
|
|
|
I'm working with a various, large keyword set that I am normallizing using ISAPI Rewrite for IIS6. No problem with the 1,000's of words save for 2 sets. They are:
S&S Engines and H&W Hitches.
The url is http://www.abc.com/engines/s&s_engines/s&s_engines - twice due to the menu structure (works fine on all others).
Here's the rewrite directive for this:
RewriteRule ^engines/s&s_engines/([^?/]*) /default.aspx?keywords=$1&cat=40&mi=8&si=7 [QSA]
and
RewriteRule ^engines/s%26s_engines/([^?/]*) /default.aspx?keywords=$1&cat=40&mi=8&si=7 [QSA]
When I try to pass the & through as the $1 parameter (either normal or URL encoded), the rewriter passes it through as an &, thus messing up the resultant querystring. I've also tried putting:
RewriteRule ([^?]+)&(.*) $1%26$2 [NS]
at the beginning to force it to encode after reading, but then I get this as the resulting query string:
keywords=s6s_engines&cat=40&mi=8&si=7 (not sure why the 6 is in there)
I know it's probably a simple request, but has me stumped for the moment. Any help would be greatly appreciated!
__________________ IDSWizzard
|