Forcing all website traffic to use HTTPS

We are now able to provide free SSL certificates.  This strengthens your site's login services, and also helps your ranking in some search engines.

In order to force all web traffic to use HTTPS, use the following code in your .htaccess file. If you are hosting multiple websites on your account, it is possible to have an .htaccess file for each website. Make sure that you are editing the .htaccess file that is in the root folder (public_html) where you want the re-direct to occur.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

Be sure to replace www.yourdomain.com with your actual domain name.

  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access my Hosting / Email Control Panel?

To access your Hosting / Email Control Panel do the following:FOR CPANEL ACCOUNTS Open a Web...

how to password protect directories

Password Protect Directories allows you to protect a folder by requiring users to enter a...

How your site works

Your website is made up of a group of files and directories, much like your Documents folder on...

Uploading Files to your site

For your visitors to be able to visit your site, you will need to add some files to it. You can...

How to upload content using Microsoft Publisher?

Open Microsoft Publisher and go to File -> Publish to the web. First you would have to set...