iis-url-http-redirect auf nicht-www-https

muss ich umleiten von

www.domain.de zu https://domain.de
-funktioniert

http://www.domain.de zu https://domain.de
-funktioniert

http://domain.de zu https://domain.de
-funktioniert nicht

rewrite>
  <rules>
    <rule name="Imported Rule 1" stopProcessing="true">
      <match url="^(.*)$" ignoreCase="false" />
      <conditions logicalGrouping="MatchAll">
        <add input="{HTTP_HOST}" pattern="^www\.(.+)$" />
      </conditions>
      <action type="Redirect" url="https://{C:1}/{R:1}" redirectType="Permanent" />
    </rule>
  </rules>
</rewrite>
  • ich gehe davon aus, dass die rewrite ist richtig in seine öffnende tags, obwohl hier im code die Eröffnung chevron fehlt. und können Sie erläutern, "Importierte Regel 1" ?
Schreibe einen Kommentar