Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

HTTP to HTTPS reditecr does not work on initial connection

$
0
0

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


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>