Redirecting http Traffic to https

This article describes how to redirect http traffic to https using the .htaccess file.


  1. Login into the Plesk panel and click Websites & Domains

  2. Click on the File Manager icon

  3. Click the New button

  4. Select Create File

  5. Name the file .htaccess and click the OK button

  6. Click on the .htaccess file

  7. Cut and paste the following code into the editor 

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