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: Rewrite asp.net anti forgery token Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Mike Hildner
Newbie
Newbie


Joined: 28 April 2011
Online Status: Offline
Posts: 2
Posted: 28 April 2011 at 10:46am | IP Logged Quote Mike Hildner

Greetings,

Wondering if anyone has any insight in how to pull out part of a URL and use that in the destination URL. This is to keep the ASP.NET anti forgery token. For example, let's say I'm trying to go here

/ABC/af(randomEncrypedStuffHere)/Alerts

and I want that to be rewritten as

/ABC/af(randomEncrypedStuffHere)/Home

Is it possible to pull out the "af(randomEncrypedStuffHere)" and stuff that into the destination?

Thanks,
Mike
Back to Top View Mike Hildner's Profile Search for other posts by Mike Hildner
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 29 April 2011 at 3:47am | IP Logged Quote Anton

Sure, it's possible.

Please try to have the following:

[ISAPI_Rewrite]

RewriteRule /ABC/af(.*)/Alerts /ABC/af$1/Home [I,L]

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


Joined: 28 April 2011
Online Status: Offline
Posts: 2
Posted: 29 April 2011 at 8:16am | IP Logged Quote Mike Hildner

Thanks Anton,

That works perfectly, I appreciate the example, and the syntax makes sense.

Regards,
Mike
Back to Top View Mike Hildner's Profile Search for other posts by Mike Hildner
 

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