Regla de reescritura de IIS en web.config para redirigir las solicitudes HTTPS a HTTP
Necesito redirigir todas las solicitudes https a http, por ejemplo, si alguien visitahttps://www.example.com/another-page/ ahttp://www.example.com/another-page/
Tengo la siguiente regla de reescritura en mi web.config en este momento, pero no funciona correctamente. Esta redirigiendohttps://www.example.com/another-page/ ahttps://www.example.com/, así que a la raíz del sitio, pero en cambio quiero que la redirección permanezca en la misma URL y solo reescriba https a http.
<rule name="Redirect to HTTP" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{R:1}" pattern="^onepage/(.*)$" negate="true" />
<add input="{HTTPS}" pattern="^ON$" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
¡Cualquier ayuda para cambiar la regla anterior para que solo cambie https a http, pero mantenga la URL completa visitada sería muy apreciada!