Von HTTP nach HTTPS in IIS/web.config umleiten

,

Hier ein Ausschnitt aus meiner Web.config-Datei:

<system.webServer>
	<rewrite>
		<rules>
			<rule name="Redirect to HTTPS" stopProcessing="true">
				<match url="(.*)" />
				<conditions>
					<add input="{HTTPS}" pattern="^OFF$" />
					<add input="{URL}" pattern="\.well-known" ignoreCase="true" negate="true" />
				</conditions>
				<action type="Redirect" url="https://www.zeta-resource-editor.com/{R:1}" redirectType="Permanent" />
			</rule>

			<rule name="LowerCaseRule1" stopProcessing="true">
				<match url="[A-Z]" ignoreCase="false" />
				<action type="Redirect" url="{ToLower:{URL}}" />
			</rule>

			<rule name="CanonicalHostNameRule1">
				<match url="(.*)" />
				<conditions>
					<add input="{HTTP_HOST}" pattern="^www\.zeta-resource-editor\.com$" negate="true" />
				</conditions>
				<action type="Redirect" url="http://www.zeta-resource-editor.com/{R:1}" />
			</rule>
			<rule name="index.aspx">
				<match url="^index.aspx$" />
				<action type="Redirect" url="/" />
			</rule>
		</rules>
	</rewrite>
</system.webServer>