How do I force all visitors of my website to use secure connection (HTTPS) ?


Follow the steps from this article.


Create file web.config in document root of the domain and put following configuration inside:

<?xml version="1.0" encoding="UTF-8"?>
                <rule name="http to httpos" stopProcessing="true">
                    <match url="(.*)" />
                        <add input="{HTTPS}" pattern="^OFF$" />
                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Temporary" />

Leave a Reply

Your email address will not be published. Required fields are marked *