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: 2nd parameter
Author
Message |
jmsobe
Newbie


Joined: 22 August 2007
Posts: 10
Posted: 25 November 2010 at 7:34am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 25 November 2010 at 7:49am

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
 
jmsobe
Newbie


Joined: 22 August 2007
Posts: 10
Posted: 18 January 2011 at 1:31pm

Hi Anton,

For some reason this is not working. Can you take another look at this? Desperate to get this working.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 19 January 2011 at 2:34am

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
 

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