-1

403 or redirect error keeps appearing in the browser even though I have done my redirects properly in IIS Manager. I have tried clearing my cookies, this did not work.

Edit: enabled direct browsing in IIS Manager and this is the result (the fifth image)

redirect checked

result of redirect checked

redirect not checked

result of redirect not checked

result of enabling direct browsing

  • https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules – Lex Li Jan 15 '21 at 21:47
  • Hi, has the problem been solved? If you think my reply is helpful to you, you can mark it as answer. – Ding Peng Jan 29 '21 at 02:39

1 Answers1

0

Try to use the redirect function in the URL Rewrite module:

enter image description here

        <rewrite>
            <rules>
                <rule name="Test" stopProcessing="true">
                    <match url="(.*)" />
              <conditions>
               <add input="{HTTP}" pattern="off" />
              </conditions>
                    <action type="Redirect" url="http://www.example.com" />
                </rule>
            </rules>
        </rewrite>

If you haven’t installed URL Rewrite yet, you can download URL Rewrite from this link.

Ding Peng
  • 3,702
  • 1
  • 5
  • 8