Isapi Rewrite not working, query string mod

863 views Asked by At

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

1

There are 1 answers

1
TonyCool On BEST ANSWER

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]