Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is commonly appreciated that:

...

It is possible to create a redirect of www.domain.com to www.domain.com/AssertWeb/ by

...


Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <system.webServer>
      <rewrite>
         <rules>
            <clear />
            <rule name="Redirect to HTTPS" patternSyntax="ECMAScript" stopProcessing="true">
               <match url="(.*)" />
               <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                  <add input="{HTTPS}" pattern="^OFF$" />
               </conditions>
               <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
            </rule>
            <rule name="Root Hit Redirect" stopProcessing="true">
               <match url="^$" />
               <action type="Redirect" url="/AssertWeb/" />
            </rule>
         </rules>
      </rewrite>
   </system.webServer>
</configuration>

...