Skip to content

Force HTTPS

To ensure the connection between your visitors and your website is secure, you should redirect them to the secure version of the site.

This can be easily completed by updating the .htaccess file in your website's public_html folder (domains/yourdomain.com/public_html).

Note

Make sure you update the yourdomain.com placeholder value with the domain you wish to redirect to.

# Redirect to https
<If "%{HTTPS} == 'off'">
    RedirectMatch "^/(.*)" "https://yourdomain.com/$1"
</If>