How to Force SSL on my main site?

I am using resite.io as my main site. How can I force SSL on it?

  • Luís
    • Support

    Hi Ed Scott ,

    Hope you’re doing well today!

    First of all, I think this article may interest you. It have a lot of background information in really easy to understand terms.

    Could you please try using the following code in your .htaccess, changing the mainsite URL in it to your mainsite URL?

    RewriteEngine on
    RewriteCond %{HTTPS} !on
    RewriteCond %{HTTP_HOST} ^(www.)?mainsite.com
    RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    And you can try a plugin to force it:

    https://wordpress.org/plugins/wordpress-https/

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.