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: two queries appear as nested folders Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
londonstan
Newbie
Newbie


Joined: 15 July 2008
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 15 July 2008 at 4:51pm | IP Logged Quote londonstan

Hi

I need to have two variables passed to my pages. i need :

www.domain.com/cats/hats

to map to

www.domain.com/page.aspx?var1=cats&var2=hats

i have pages which have the form :

www.domain.com/page

but i dont want them effected, only the requests with two items after the domain. also the root must not be effected

www.domain.com

how do i do this?

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


Joined: 15 July 2008
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 15 July 2008 at 6:16pm | IP Logged Quote londonstan

i worked out the regexs

regex

www.domain.com/(.+)/(.+)

-----

format string

www.domain.com/?var1=$1&var2=$2

but how do i get this thing working on iis7. i have server 2008 64 bit. as pretty new to asp.net and the setup instructions are a bit vague

Back to Top View londonstan's Profile Search for other posts by londonstan
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7598
Posted: 28 July 2008 at 5:52pm | IP Logged Quote Lexey

RewriteRule /([^/.?]+)/([^/.?]+) /page.aspx\?var1=$1&var2=$2 [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 

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