locked
rule rewrite redirect to tohter domqain RRS feed

  • Question

  • User-1263410958 posted

    I trye same behaviour as in this thread but on IIS 8
    http://forums.iis.net/t/1182741.aspx

    i want to redirect all *fanta* to fanta.off
    but my rule, only appends fanta.off as a path leading to very long url
    fanta.oof/fanta.off/fanta.off/fanta.off/fanta.off/fanta.off.....

    <rule name="redirect to *.fanta.off" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{HTTP_HOST}" pattern="(.*)fanta.off" negate="true" />
                            <add input="{HTTP_HOST}" pattern="(.*)fanta.(.*)" />
                        </conditions>
                        <action type="Redirect" url="http://fanta.off/{R:1}" />
                    </rule>

    any clue?

    Wednesday, April 15, 2015 2:31 PM

Answers