Forum Moderators: open

Message Too Old, No Replies

Difficult ISAPI Rewrite rules

I need your help.

         

skuba

12:06 am on Mar 30, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi,
In an effort to make our ecommerc site more SEO friendly, we installed ISAPI Rewrite.

The urls are pretty complex as they carry departments information, sub dept, product names, etc...

I would like to keep the product names on the URL, but this is causing a problem with the rules in 2 situations. The problem is when we have ( ) paranthesis or + plus sign in the product names (detailname).

Do you know how we could change the rule so it would work?

The current rule is:
# General detail rule. Does allow for "/" and/or dash in sub-dept name.
RewriteRule .*detail/([\d]+)-([\w]+)-([\d]+)-([a-z_]+)-([\d]+)-([a-z'/-]+)/([\w\*\.'&-]+).htm(.*) /detail.htm\?stylepkey=$1&style_id=$2&dept_id=$3&deptName=$4&sub_id=$5&subName=$6&detailName=$7 [I]

The URL below is an example of the URLs that doesn't work with our current rule
/detail/11480-210_CIC8P3-2-Accessories-27-Computers/Heart-Rate-/Ciclosport-CP8+-Heart-Rate-Monitor-.htm

Thanks a lot for helping!

skuba

6:17 pm on Mar 30, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



Any ideas? Thanks