Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Help:the wording of a rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mk_cooper
Newbie
Newbie


Joined: 30 May 2010
Online Status: Offline
Posts: 3
Posted: 11 June 2010 at 6:23am | IP Logged Quote mk_cooper

login.asp         >          login.do
login.asp?act=main        >     login.do?act=main
login.asp?act=reg          >     login.do?act=reg
..............

I write a rule  (Testing errors)

RewriteRule  /login\.do(?:\?(.+))? /login\.asp($1) [I,L]

Help correct wording, thank you��

Back to Top View mk_cooper's Profile Search for other posts by mk_cooper
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 11 June 2010 at 7:41am | IP Logged Quote Anton

Please try the following:

[ISAPI_Rewrite]
RewriteRule /login\.do(?:\?(.+))? /login.asp?1$1 [I,L]

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


Joined: 30 May 2010
Online Status: Offline
Posts: 3
Posted: 11 June 2010 at 1:09pm | IP Logged Quote mk_cooper

Anton wrote:
Please try the following:

[ISAPI_Rewrite]
RewriteRule /login\.do(?:\?(.+))? /login.asp?1$1 [I,L]

Tested seems to be wrong

Rule for 3.1
RewriteRule /login\.do /login.asp [QSA]

How to define for 2.X [Do not support the QSA for 2.x]

Back to Top View mk_cooper's Profile Search for other posts by mk_cooper
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 14 June 2010 at 4:41am | IP Logged Quote Anton

Sorry, I've mad a misprint. Here's the correct syntax:

[ISAPI_Rewrite]
RewriteRule /login\.do(\?.+)? /login.asp?1$1 [I,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 cannot vote in polls in this forum