« Previous Next »

Thread: How to get a matched pattern in the Rewrite URL field?

Last post 04-13-2009 9:21 PM by Doggy8088. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-13-2009, 11:04 AM

    • Doggy8088
    • Top 500 Contributor
    • Joined on 11-24-2002, 2:58 PM
    • Taiwan
    • Posts 13

    How to get a matched pattern in the Rewrite URL field?

    There is a Condition input shown below:

     

    There is a {C:0} in the Rewrite URL field.

    My question is that the "{C:0}" will get the "New Value" from the ReverseProxyMap,  how can I get the "matched" string ( a.k.a. Original Value ) in the Rewrite URL field?

     

  • 04-13-2009, 1:27 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 661

    Re: How to get a matched pattern in the Rewrite URL field?

    I am not sure I understand the question exactly. Do you need to get the original value that was passed to the rewrite map? In your specific case you are passing the {HTTP_HOST} as an input to the rewrite map. You can use that in the Rewrite URL.

    http://ruslany.net
  • 04-13-2009, 9:21 PM In reply to

    • Doggy8088
    • Top 500 Contributor
    • Joined on 11-24-2002, 2:58 PM
    • Taiwan
    • Posts 13

    Re: How to get a matched pattern in the Rewrite URL field?

    I see.  I forgot I can use {HTTP_HOST} too. :-p

    Thank you.

Page 1 of 1 (3 items)
Microsoft Communities