This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: query string values after friendly url
Author
Message |
emanweb
Newbie


Joined: 17 October 2007
Location: United States
Posts: 10
Posted: 03 January 2012 at 5:40pm

Hi

I have the rule below that works fine for the page

http://www.mysite.com/mysection/mypage.html

RewriteRule ^([^?/]+)\/(([^?/]+)\.html) /index.cfm?
mysection=$1&mypage=$2 [NC,I,LP]

The problem is that now I have the following URL with extra query string
values that I need to capture on my ColdFusion code:

http://www.mysite.com/mysection/mypage.html?
variable1=value1&variable2=value2&variable3=value3

I tried with no luck:

RewriteRule ^([^?/]+)\/(([^?/]+)\.html(?:\?[^.*])?) /index.cfm?
mysection=$1&mypage=$2&mystring=$3 [NC,I,LP]

Any help is very welcome.

Thank you.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 05 January 2012 at 4:38am

Please, see the following article under "Dealing with querystring"

Regards
Andrew
Back to Top
 
emanweb
Newbie


Joined: 17 October 2007
Location: United States
Posts: 10
Posted: 05 January 2012 at 7:58am

Thanks! It works now after I add [qsa]
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version