Topic: Rewrite asp.net anti forgery token
|

|
| Author |
|
Mike Hildner Newbie

Joined: 28 April 2011
Online Status: Offline Posts: 2
|
| Posted: 28 April 2011 at 10:46am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 29 April 2011 at 3:47am | IP Logged
|
|
|
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
Online Status: Offline Posts: 2
|
| Posted: 29 April 2011 at 8:16am | IP Logged
|
|
|
Thanks Anton,
That works perfectly, I appreciate the example, and the syntax makes sense.
Regards, Mike
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|