url-rewritingisapi-rewritehelicontech

Isapi Rewrite not working, query string mod


if you hypothetically typed in: http://www.domain.com/Items-Shopping-Shoe-2013

my website needs to see: http://www.domain.com/items.asp?Cc=Shoe-2013

so, I thought this would be pretty simple..

I edited the httpd.ini for helicon Isapi rewrite with this:

RewriteRule ^(.*?.com/)Items-Shopping-([A-Za-z0-9-]+)?$ $1items.asp\?Cc=$2

although patern matches, it doesn't work.

I am a newb to regex expressions and Isapi rewrite..probably pretty obvious :P


Solution

  • Try the following in ISAPI_Rewrite 3 .htaccess:

    RewriteBase /
    RewriteRule ^Items-Shopping-(.+)$ /items.asp?Cc=$1 [NC,L]
    

    For ISAPI_Rewrite 2 it will be:

    RewriteRule /Items-Shopping-(.+) /items.asp\?Cc=$1 [I,L]