Unknown Number Of Parameters

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 8
Joined: 18 Dec 2012, 11:49

Unknown Number Of Parameters

23 May 2013, 16:55

How would I create a rule for unknown parameters in the querystring?

example:
http://www.somesite.com/dogs/black/texas/dogs-for-sale
http://www.somesite.com/dogs/texas/dogs-for-sale
http://www.somesite.com/texas/dogs-for-sale

I would like to keep the keyword and the end.

Thanks,
Matt

User avatar
Posts: 8
Joined: 18 Dec 2012, 11:49

Re: Unknown Number Of Parameters

23 May 2013, 17:06

Nevermind...
I'm just using
RewriteRule ^(.*)/dogs-for-sale$ /test.php?id=$1 [NC,L]

then grabbing the url with php and parsing it to build the query.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 17 guests