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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: add currency parameter ?
Author
Message |
ajaj
Newbie


Joined: 19 April 2011
Posts: 1
Posted: 19 April 2011 at 8:54am




I need to pass a currency parameter i.e UK,USA,EU,AU for the below, this will not all way be need to be passed so how can i get to work with the following if i need it to be passed.

www.site.com/rugs/square/?USA
Or
www.site.com/rugs/square/20/?USA

to work with this:-

RewriteRule /rugs/([^?./]+) /search.asp\?rug=$1
RewriteRule /rugs/([^?./]+)/ /search.asp\?rug=$1
RewriteRule /rugs/([^?./]+)/(\d+) /search.asp\?rug=$1&offset=$2
RewriteRule /rugs/([^?./]+)/(\d+)/ /search.asp\?rug=$1&offset=$2
RewriteRule /rugs/([^?./]+)/([^?./]+) /search.asp\?rug=$1&searchtype1=$2
RewriteRule /rugs/([^?./]+)/([^?./]+)/ /search.asp\?rug=$1&searchtype1=$2
RewriteRule /rugs/([^?./]+)/([^?./]+)/(\d+) /search.asp\?rug=$1&searchtype1=$2&offset=$3
RewriteRule /rugs/([^?./]+)/([^?./]+)/(\d+)/ /search.asp\?rug=$1&searchtype1=$2&offset=$3
RewriteRule /rugs/([^?./]+)/([^?./]+)/([^?./]+) /search.asp\?rug=$1&searchtype1=$2&searchtype2=$3
RewriteRule /rugs/([^?./]+)/([^?./]+)/([^?./]+)/ /search.asp\?rug=$1&searchtype1=$2&searchtype2=$3
RewriteRule /rugs/([^?./]+)/([^?./]+)/([^?./]+)/(\d+) /search.asp\?rug=$1&searchtype1=$2&searchtype2=$3&offset=$4
RewriteRule /rugs/([^?./]+)/([^?./]+)/([^?./]+)/(\d+)/ /search.asp\?rug=$1&searchtype1=$2&searchtype2=$3&offset=$4 
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 20 April 2011 at 4:56am

Please try to apply it like this:

RewriteRule /rugs/([^?./]+)/?(\?(\w+))? /search.asp\?rug=$1(?2&curr=$2)
RewriteRule /rugs/([^?./]+)/(\d+)/?(\?(\w+))? /search.asp\?rug=$1&offset=$2(?3&curr=$3)
RewriteRule /rugs/([^?./]+)/([^?./]+)/?(\?(\w+))? /search.asp\?rug=$1&searchtype1=$2(?3&curr=$3)
RewriteRule /rugs/([^?./]+)/([^?./]+)/(\d+)/?(\?(\w+))? /search.asp\?rug=$1&searchtype1=$2&offset=$3(?4&curr=$4)
RewriteRule /rugs/([^?./]+)/([^?./]+)/([^?./]+)/?(\?(\w+))? /search.asp\?rug=$1&searchtype1=$2&searchtype2=$3(?4&curr=$4)
RewriteRule /rugs/([^?./]+)/([^?./]+)/([^?./]+)/(\d+)/?(\?(\w+))? /search.asp\?rug=$1&searchtype1=$2&searchtype2=$3&offset=$4(?5&curr=$5)

__________________
Regards,
Anton
Back to Top
 

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

Printable version Printable version
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