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: Adding to Querystring
Author
Message |
AndrewHuk
Newbie


Joined: 27 August 2010
Posts: 3
Posted: 02 March 2012 at 10:33am

Hello,

Is it possible to do this:

In the address bar I would like:

http://domain.com/certain-page.html?id1=1&id2=2

and I would like this to be rewritten and add an extra variable to the querystring like this:

http://domain.com/certainpage.asp?action=load&id1=1&id2=2

This is what I have but I am not sure on how to add the extra querystring entry as not to expose it in the address bar.

#Users Login URL rewrites
RewriteRule ^users-login.html$ /users.asp?action=load

Many Thanks in advance.

Andrew

 

Back to Top Visit AndrewHuk's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 March 2012 at 2:57am

Are you using ISAPI_Rewrite 2 or 3?
If it's v2, the rule should be:

[ISAPI_Rewrite]
RewriteRule /users-login\.html\?(.+) /users.asp?action=load&$1 [I,L]

__________________
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