Redirect site to https once you have SSL

Once you get an SSL, to use it on your site you need to enable it within your code. This little Mod Rewrite will enable it using a .htaccess file that you add at the root of your account.

1. If you look in the domain section of the control panel, listed in the sub directory field is the folder that is the root of your domain. Once you know which sub directory is the root for your domain, you need to add a .htaccess file in it.

2. Go to the file Manager in Control Panel and click on sub directory listed above.

3. In the right side column you can click in New File and write in .htaccess, then click create. This will make the file so you can then edit it and add the code. Keep in mind on Windows computers, .htaccess files are hidden files and are not displayed in Windows Explorer. You need to enable hidden files to see it. 

4. In the file manager, you should now see the .htaccess file. Click the radio button to the right to select the file and then click on Edit in the top of right column.

5. Paste in this code and change the to your domain and change. 

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

Your are done, next test the code by going to your site. What will happen is the site will redirect on entry to using the https and secure your site at all time.

Was this answer helpful?

 Print this Article

Also Read

How to force HTTPS using the .htaccess file

Sometimes it's necessary to make sure your website’s visitors use the SSL encrypted connection....

What is SSL and Why is it important?

What is SSL? SSL (Secure Sockets Layer) is a standard technology behind establishing an...

How To Enable SSL on Your WordPress Site

Before you Begin you Need the Following: An SSL Certificate has been purchased, installed and...

How to Purchase an SSL

For more information about SSL certificates and when you might need one for your website, please...

Let's Encrypt SSL certificate overview

Safety and security is a vital aspect to consider when hosting your website on the internet. It...