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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: 2nd parameter Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jmsobe
Newbie
Newbie


Joined: 22 August 2007
Online Status: Offline
Posts: 10
Posted: 25 November 2010 at 7:34am | IP Logged Quote jmsobe

The current URL is formatted like this:
Hello,

How would I go about adding a second parameter to my rule?

The current page is formatted like this:

http://www.abc.com/p12/category_page.html

My current isapi rewrite rule is formatted like this.

RewriteRule .*t([[:digit:]]*)\/.*.html\??(.*) /store/group.asp\?tnum=$1(?
2&$2:) [I,L]

I would like to be able to add a second parameter for a page number like
so:

http://www.abc.com/p12/pg2/category_page.html


Any suggestions. Everything else should stay the same I just want to add
the optional page parameter.
Back to Top View jmsobe's Profile Search for other posts by jmsobe
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 25 November 2010 at 7:49am | IP Logged Quote Anton

I guess you need something like this:

RewriteRule /p(\d*)(?:/pg(\d*))?/.*\.html(?:\?(.*)) /store/group.asp\?tnum=$1(?2&page=$2)(?3&$3) [I,L]

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


Joined: 22 August 2007
Online Status: Offline
Posts: 10
Posted: 18 January 2011 at 1:31pm | IP Logged Quote jmsobe

Hi Anton,

For some reason this is not working. Can you take another look at this? Desperate to get this working.
Back to Top View jmsobe's Profile Search for other posts by jmsobe
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 19 January 2011 at 2:34am | IP Logged Quote Anton

Please try to fix it like this:

RewriteRule /p(\d*)(?:/pg(\d*))?/.*\.html(?:\?(.*))? /store/group.asp\?tnum=$1(?2&page=$2)(?3&$3) [I,L]

And please tell which requests work and which don't in case of further issues.

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