Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Trouble appending rewritten urls Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ustactical
Newbie
Newbie


Joined: 13 May 2008
Online Status: Offline
Posts: 3
Posted: 13 May 2008 at 2:29pm | IP Logged Quote ustactical

How do I allow query strings at the end of a rewritten url?

For example, I would like to append the url with this string.
?SSAID=197840

Original URL with query string (this works)
http://shop.navyseals.com/detail.aspx?ID=27&SSAID=197840

Rewritten URL with query string. (doesn't work)
http://shop.navyseals.com/deep-see-amphib-dive-boot-27.html?SSAID=197840

Is there a setting that will allow this query string?


Back to Top View ustactical's Profile Search for other posts by ustactical
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6451
Posted: 14 May 2008 at 6:03am | IP Logged Quote Yaroslav

Show me the rule and I will show you how to change it to appeng query string.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
ustactical
Newbie
Newbie


Joined: 13 May 2008
Online Status: Offline
Posts: 3
Posted: 14 May 2008 at 2:56pm | IP Logged Quote ustactical

Hi Yaroslav,
  I'm such a novice at this, I don't know how to create a rule yet. All I know at this point is that the rules are created/edited in the httpd.ini file.
  Our urls are being rewritten to this format:
http://shop.navyseals.com/deep-see-amphib-dive-boot-27.html
When the string "?SSAID=197840" is added to this url, it does not function.
  However, if that string is added to our original url, it DOES work.
http://shop.navyseals.com/detail.aspx?ID=27&SSAID=197840

Does this help?
Back to Top View ustactical's Profile Search for other posts by ustactical
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6451
Posted: 15 May 2008 at 4:53am | IP Logged Quote Yaroslav

Please try the following rule:

RewriteRule /[^/]*-(\d+)\.html(\?.*)? /detail.aspx(?2$2&:\?)ID=$1 [I,L]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
ustactical
Newbie
Newbie


Joined: 13 May 2008
Online Status: Offline
Posts: 3
Posted: 15 May 2008 at 12:30pm | IP Logged Quote ustactical

The rule worked!

Now this appended url works.
http://shop.navyseals.com//combat-side-stroke-instructional-dvd-with-don-walsh-1909.html?SSAID=197840

Thank you so much for your help!

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

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