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.
  • 110 Users Found This Useful
Was this answer helpful?

Related Articles

Configure your SSL with Unlimited Web Hosting

Short guide to configuring your SSL with Unlimited Web Hosting

How to install an SSL Cert in CPanel

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

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...

How to force WordPress to use https

Watch the video guide below about forcing WordPress to use https

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...