Loading…
38b2c97f77544c8398e1dcdd3f989106c49dfab4
  • Akmal
  • November 2, 2024

How to Enable SSL (HTTPS) for Your Website






How to Enable SSL (HTTPS) for Your Website


How to Enable SSL (HTTPS) for Your Website

Category: Web Applications

Why Enable SSL?

Today’s web users expect secure data transfer, often identified by the green lock icon in their browser on HTTPS-enabled websites. SSL certificates help protect data and ensure trust with your audience.

Step 1: Install an SSL Certificate

To enable HTTPS, start by installing an SSL certificate for your domain. In your hosting control panel, navigate to My Domains > SSL Certificates. You have two options:

  • Order SSL Certificate – Purchase an SSL certificate.
  • Request Let’s Encrypt Certificate – Get a free SSL certificate from Let’s Encrypt.

Once installed, allow up to 1 hour for the SSL IP to propagate.

Step 2: Redirect to HTTPS

After enabling SSL, redirect your site traffic to HTTPS to ensure a secure connection. This is applicable for static and dynamic sites without specific URL configurations, such as non-WordPress sites.

Creating an .htaccess File

To set up redirection, go to Files > File Manager in your control panel. Navigate to your domain’s root folder, typically /www/mydomain.com/.

  • If no .htaccess file exists, create one by selecting New File.
  • Edit the .htaccess file and paste the following code at the top:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
            

Click Save to apply the changes.

Verification

Visit your website to ensure it loads securely with HTTPS. You should see a secure connection icon in your browser’s address bar, confirming SSL is active.

Additional Tips

If using WordPress, follow a specific guide to enable HTTPS within WordPress settings. Remember, HTTPS redirection strengthens your website’s security and boosts SEO rankings.


Leave your comment

Top