Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Success Stories
 Helicon Tech : Success Stories
Subject Topic: QueryString may not be there Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
CelloJ
Newbie
Newbie


Joined: 14 April 2008
Location: United States
Online Status: Offline
Posts: 22
Posted: 31 July 2008 at 6:11pm | IP Logged Quote CelloJ

Sometimes, my is linked this way:

mysite.com/searchItems.cgi, but other times like this mysite.com/searchItems.cgi?source=12345

The expression below is only working for when the parameter is present.  How can I make it so it works for both cases?

RewriteRule  /searchItems.cgi[^?]*(\?.*)? /newsite/niceSearchUrl.aspx$1 [RP]

Thanks in advance!

CelloJ

Back to Top View CelloJ's Profile Search for other posts by CelloJ Visit CelloJ's Homepage
 
CelloJ
Newbie
Newbie


Joined: 14 April 2008
Location: United States
Online Status: Offline
Posts: 22
Posted: 31 July 2008 at 6:24pm | IP Logged Quote CelloJ

I would hate to have to do this:

RewriteRule  /searchItems.cgi[^?]*(\?.*)? /newsite/niceSearchUrl.aspx$1 [RP]RewriteRule  /searchItems.cgi /newsite/niceSearchUrl.aspx [RP]

Thanks.

CelloJ

 

Back to Top View CelloJ's Profile Search for other posts by CelloJ Visit CelloJ's Homepage
 
CelloJ
Newbie
Newbie


Joined: 14 April 2008
Location: United States
Online Status: Offline
Posts: 22
Posted: 31 July 2008 at 6:25pm | IP Logged Quote CelloJ

BTW, sorry for having post this to the wrong section.
Back to Top View CelloJ's Profile Search for other posts by CelloJ Visit CelloJ's Homepage
 
CelloJ
Newbie
Newbie


Joined: 14 April 2008
Location: United States
Online Status: Offline
Posts: 22
Posted: 01 August 2008 at 10:03am | IP Logged Quote CelloJ

I think I was able to make it work by making this change: [^?]?(\?.*)?

RewriteRule  /searchItems.cgi[^?]?(\?.*)? /newsite/niceSearchUrl.aspx$1 [RP]RewriteRule  /searchItems.cgi /newsite/niceSearchUrl.aspx [RP]

Thanks.

CelloJ

Back to Top View CelloJ's Profile Search for other posts by CelloJ Visit CelloJ's Homepage
 
CelloJ
Newbie
Newbie


Joined: 14 April 2008
Location: United States
Online Status: Offline
Posts: 22
Posted: 01 August 2008 at 10:04am | IP Logged Quote CelloJ

Correction:

I think I was able to make it work by making this change: [^?]?(\?.*)?

RewriteRule  /searchItems.cgi[^?]?(\?.*)? /newsite/niceSearchUrl.aspx$1 [RP]Thanks.

CelloJ

Back to Top View CelloJ's Profile Search for other posts by CelloJ Visit CelloJ's Homepage
 

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