IIS 7 - URL Rewrite Redirect

Discussion in 'Site Programming, Development and Design' started by Corsec, Jul 6, 2012.

  1. Hi all. New to these forums, but I see some pretty smart guys here and I'm hoping to get their help!

    I would like to create a redirect in IIS 7 using the URL Rewrite 2.0 Module to do the following:

    User entry:
    Redirect to:
    Anyone have any good ways to do this? I'm not much of a coder and I'm having some issues understanding the XML syntax to use in web.config.

    Thank you!
  2. Ironically, after I wrote this post I figured it out.

                    <rule name="Test.Redirect" stopProcessing="true">
                        <match url=".*" />
                            <add input="{HTTP_HOST}" pattern="^test(.domain.com)?$" />
                        <action type="Redirect" url="https://server.domain.com/adfs/ls/IdpInitiatedSignon.aspx?loginToRp=Party&amp;homeRealm=Party" />
  3. ComputerMan

    ComputerMan Winhost Staff

    Glad to hear that you figured it out and thank you for posting your solution :)

Share This Page