Written URL w/ Query String

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 06 Apr 2014, 14:37

Written URL w/ Query String

16 Apr 2014, 10:44

I am trying to rewrite a URL but still have some query string values after being rewritten.

RewriteRule (.+)-county/(.+)-condos-for-rent /Cities/CityCondos.aspx?CityID=${CountyCity:$2-$1}&CountyID=${CountiesByName:$1}&ListingTypeID=2 [NC,L]

But I would like to have ?page=3 append &page=3 to the actual url...

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Written URL w/ Query String

16 Apr 2014, 17:38

Hello,

Code: Select all
If I understand correctly, try to add QSA-flag, like [QSA,NC,L]


Regards

User avatar
Posts: 2
Joined: 06 Apr 2014, 14:37

Re: Written URL w/ Query String

21 Apr 2014, 16:44

That does not seem to be working.

RewriteRule (.+)/(.+)-real-estate-search(?:/?listings-page=(\d+))$ /Communities/CommunityDetails.aspx?CommunityID=${CommunityCity:$2-$1}&CityID=${CitiesByName:$1}?3&listings-page=$3 [QSA,NC,L]

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Written URL w/ Query String

21 Apr 2014, 23:32

Well,

It would not work the way you specified, take a look at http://www.helicontech.com/forum/10648-FAQ.html under "URLs with question mark don't work"

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 11 guests