« Previous Next »

Thread: Redirect .NET applications

Last post 03-23-2009 1:17 PM by ruslany. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 03-20-2009, 11:37 AM

    Redirect .NET applications

    Hi, I am trying to figure out the best way to do this. I am using ARR with 2 content servers. Server1 is a windows 2000 box and Server2 is a windows 2008 box...I am wanting to use URL rewrite to redirect all requests for .NET applications to Server2 and everything else to Server1. I don't think there is any way to do this other than using a regular expression against the request_uri. I am currently routing all requests to Server1 and am creating a separate rule for each .NET application and routing it to Server2.

    If the request_uri is the only way I can do this, is there a way I can use a rewrite map instead of creating an individual rule for each application I want routed to Server2? I don't think I can reference a rewrite map in the pattern of a condition...for example:

     create a rule using a rewrite map...add one condition and set the pattern to \b{RewriteMap:{REQUEST_URI}}\b

  • 03-21-2009, 1:41 PM In reply to

    Re: Redirect .NET applications

    Hello,

    It will be much better to use IIS 301 Redirect.

    Regards

  • 03-23-2009, 1:17 PM In reply to

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

    Re: Redirect .NET applications

    You can definitely use rewrite maps in conditions. In fact, if you use URL rewriter UI, click "Add Rules" and then choose "Rule with Rewrite Map" rule template, it will generate for you the rewrite rule that uses rewrite map with a condition that references a rewrite map that uses REQUEST_URI.

    http://ruslany.net
Page 1 of 1 (3 items)
Microsoft Communities