Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Rule help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
glukmaster
Newbie
Newbie


Joined: 15 September 2004
Location: Canada
Online Status: Offline
Posts: 18
Posted: 19 September 2008 at 6:04pm | IP Logged Quote glukmaster

RewriteRule ^city/([^-]+)/?$ /search.asp?searchIn=city&searchFor=$1 [NC,L]

currently it works for /city/$1
i need it to take optional parameter for /city/$1/page/$2

so it will be /city/toronto/page/2/
Back to Top View glukmaster's Profile Search for other posts by glukmaster Visit glukmaster's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 23 September 2008 at 1:38am | IP Logged Quote Anton

Should this parameter be matched and passed to query string?

Please try to use the following rule:

RewriteRule ^city/([^-]+)(?:/page/(\d+))?/?$ /search.asp?searchIn=city&searchFor=$1?2&page=$2 [NC,L]


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

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 can vote in polls in this forum