umleiten Derzeit ist meine Regel:Web.config URL zu nicht-www + https
<rule name="SecureRedirect" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{HTTPS}" pattern="off" />
<add input="{HTTP_HOST}" pattern="^(www\.)?(.*)$" />
</conditions>
<action type="Redirect" url="https://{C:2}" redirectType="Permanent" />
</rule>
Das Problem dabei ist:
http://www.domainName.com/image.png
Umleitungen falsch zu https://domainName.com
statt https://domainName.com/image.png
und
https://www.domainName.com/image.png
wird nicht immer aufumgeleitet
Also, was ist der wahre Weg, um alle auf nicht-www https URL umleiten?
Ich kann nicht verstehen, was Sie damit in der Web-Config-Umgebung meinen! – user3196160
Diese Antwort ist nicht für IIS –