Home > Blockchain >  What is wrong with this rewrite rule
What is wrong with this rewrite rule

Time:03-28

I am attempting to create a redirect rule to direct all traffic to one of my pages on my old site to my new site. I have created this rules in the parent web.config on my old IIS server:

            <rule name="redirect to survey domain" stopProcessing="true">
                <match url="takesurvey" />
                <conditions>
                    <add input="{HTTPS}" pattern="^emory.zanek.net$" />
                </conditions>
                <action type="Redirect" url="https://survey.zanek.net/{R:1}" redirectType="Temporary" />
            </rule>

Essentially I want to redirect all traffic for the specific page takesurvey to a new survey domain. So if the user navigates to:

images

  • Related