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

Related Articles

How to force WordPress to use https

Watch the video guide below about forcing WordPress to use https

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

Configure your SSL with Unlimited Web Hosting

Short guide to configuring your SSL with Unlimited Web Hosting

How to install an SSL Cert in Plesk

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