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: Rewrite asp.net anti forgery token
Author
Message |
Mike Hildner
Newbie


Joined: 28 April 2011
Posts: 2
Posted: 28 April 2011 at 10:46am

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


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 April 2011 at 3:47am

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
 
Mike Hildner
Newbie


Joined: 28 April 2011
Posts: 2
Posted: 29 April 2011 at 8:16am

Thanks Anton,

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

Regards,
Mike
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