Force always the use of SSL

Sometimes, depending on the use we want to give the SSL Certificate it can be interesting to force the browser to always use the connection using https, in order to do it you simply need to add the following lines to the .htaccess file in the "public" folder or the subdomain you want to use (available only at Basic or greater hosting plans), in case you don't have this file you would have to create it:

RewriteEngine On

RewriteBase /

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

Important: Remember to modify the yourdomain domain for your domain.


Support