This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Can’t get rule to work with querystrings Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bmdlfc
Newbie
Newbie


Joined: 13 January 2010
Online Status: Offline
Posts: 4
Posted: 13 January 2010 at 9:50am | IP Logged Quote bmdlfc

Hi,

I'm not trying to do anything out of the ordinary here.

Here's my rule which isn't working:

RewriteRule /short_breaks_offers/deals.asp?dest=Prague http://www.citybreaks-direct.co.uk/morebargains.asp?dest=Prague [RP,L]

I have lots of these with the querystring value being replaced. None of these types of rule work but others do in my httpd.ini file like this one:

RewriteRule /short_breaks_offers/ http://www.citybreaks-direct.co.uk/bargains.asp [RP,L]

Any ideas what I'm doing wrong?

Thanks,
Brett
Back to Top View bmdlfc's Profile Search for other posts by bmdlfc
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 13 January 2010 at 10:48am | IP Logged Quote Anton

Please consider escaping the question mark like this:

RewriteRule /short_breaks_offers/deals.asp\?dest=Prague http\://www.citybreaks-direct.co.uk/morebargains.asp\?dest=Prague [RP,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
bmdlfc
Newbie
Newbie


Joined: 13 January 2010
Online Status: Offline
Posts: 4
Posted: 14 January 2010 at 11:12am | IP Logged Quote bmdlfc

Anton,
That works! Many thanks for the swift reply.

Brett

Back to Top View bmdlfc's Profile Search for other posts by bmdlfc
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum