Force HTTPS using .htaccess

Topic Hosting, Security
Access FTP

It’s recommended that your website utilize SSL encryption to protect visitor’s data when they enter information into the site, such as filling out lead/contact forms, enter payment information, login, etc. It’s very easy to force your website’s visitors over SSL with a quick directive.

Locate the .htaccess file in the root (public_html) folder of your website and open it with a code editor. If you’re hosting environment is running cPanel you can open the file in cPanel’s file manager in your browser. cPanel users may need to hit open the settings (button on top right of file manager) and choose: “Show Hidden Files (dotfiles)” to make the .htaccess file visible in the in the file manager.

Enter the following directives at the top of the file, replacing with your domain.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$$1 [R,L]

At this time- and traffic attempting to visit your website over HTTP will be redirected to HTTPS.

You may need to take additional steps to ensure your website is using the proper protocol.


Quick Open Ticket

You can quickly open a ticket without logging in. Be sure to use your login email address and include the web address of your service.