How To Enable SSL (HTTPs) for your website?
Category: Web Applications
Website visitors are becoming more aware of the importance of secure data transfer, and they often look for the green lock that appears in their browser on HTTPs-enabled websites.
Before you can have your website loading at https:// instead of http://, you need to have an SSL certificate installed for your domain.
You can get one from the hosting control panel: My Domains -> SSL Certificates
The options are either to:
- Order SSL certificate
- Request Let's Encrypt certificate
Once you have installed the SSL, please allow up to 1 hour for the new SSL IP propagation!
After you have enabled the SSL certificate on your domain name, you will need to set up a redirect for your website to use SSL and the HTTPs protocol.
This procedure is valid for any static or dynamic website that does not have a configuration for the URL it is installed on, like WordPress.
If you need to enable HTTPs for your WordPress site, please see the How To Enable SSL (HTTPs) in WordPress article.
Steps to enable HTTPs
- First, go to Files -> File Manager in your hosting control panel and navigate to your domain root folder, usually
/www/mydomain.com/
- If there is no file called
.htaccess
created, then create one using the New File button. - Edit the
.htaccess
file and place the following code at the top:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Click Save.
Once you do this, your website is now fully set up to use SSL / HTTPS.
Tags: .htaccess, "Let's Encrypt", enable SSL, file manager, green lock, how to enable SSL, HTTPS, HTTPS protocol, HTTPS redirect, secure data transfer, secure website, secure website setup, SSL, SSL certificate, SSL for WordPress, SSL installation, SSL IP propagation, web applications, web hosting, website encryption, website security