1. Home
  2. Knowledge Base
  3. Web hosting
  4. SSL & HTTPS
  5. How do I change from HTTP to HTTPS after I have installed my SSL certificate?

How do I change from HTTP to HTTPS after I have installed my SSL certificate?

This article answers the question: How can I make sure my visitors see my site only through https?

Once you have installed your SSL certificate, you need to make sure your visitors use the protected version of your website. You do that by forcing HTTP to forward to HTTPS.


In Linux you do that via adding this code to your .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]


In Windows you do that via editing your web.config file. Here is an example:

        <?xml version="1.0" encoding="UTF-8"?>
                        <clear />
                        <rule name="Redirect to https" stopProcessing="true">
                            <match url="(.*)" />
                                <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                            <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
Tip: Is your website on HTTPS but your browser still marks it as unsafe?

Then check for mixed content and delete if necessary.
If you use WordPress, it is sufficient to install and activate the Really Simple SSL plugin to resolve the mixed content problem.

Updated on 8 March 2020

Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact Support

Couldn't find a solution?


Our specialists are available 24/7 to provide you with free support. Feel free to contact Joachim and his colleagues via e-mail or by phone.

Joachim Coessens Specialist Support