Hi,
I have the following script:
<rewrite>
<rules>
<rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" negate="false" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
</rule>
</rules>
</rewrite>
However on the initial connection to the web site does not go to HTTPS
example, I type http://www. website.com and it goes to http://www. website.com
once on the site and click on a hyperlink it does go to https://www. website.com/fr
What am I missing to set this to work correctly.
Note: Have tried similar scripts to the one above as well.
Thanks for your help