Rewrite vs Redirect
# help-with-umbraco
r
I have an Umbraco v8 site running in Umbraco Cloud. Since it's v8 we still have a web.config where I've configured many redirects. They work great. I had a need today for a Rewrite (as opposed to a redirect) but it doesn't seem to be supported. I saw a few results here on Discord while searching but nothing that seemed solid. Is there a solution for this? The following doesn't break, but also doesn't work.
Copy code
<rule name="rewrite to partner page" enabled="true" stopProcessing="true">
          <match url="(.*)" />
          <conditions logicalGrouping="MatchAny">
            <add input="{HTTP_HOST}" pattern="partner-url.com" />
          </conditions>
          <action type="Rewrite" url="https://www.company.com/partner-name/" redirectType="Permanent" />
        </rule>
Thanks!