Redirect Website to HTTPs

To redirect your website to HTTPS. Enter the following to your .htaccess file.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Save the file, then test via your browser.
  • 107 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use Let's Encrypt on my website on the shared servers?

If you are on a Plesk server, Let's Encrypt will already be enabled. If you are on a cPanel...

Configure your SSL with Unlimited Web Hosting

Short guide to configuring your SSL with Unlimited Web Hosting

Creating a Certificate Signing Request (CSR) in Plesk

In order to generate a CSR in plesk, follow the steps below1) Log into your plesk control panel2)...

How to install an SSL Cert in CPanel

In order to install an SSL cert after purchasing follow the steps belowThis article assumes you...

Creating a Certificate Signing Request (CSR) in CPanel

In order to generate a CSR in Cpanel, follow the steps below1) Log into your cpanel control...