Help

Redirecting http Traffic to https

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

Steps

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

    01 - Plesk.png
  2. Click on the File Manager icon

    02 - File Manager.png
  3. Click the New button

    03 - New.png
  4. Select Create File

    04 - New File.png
  5. Name the file .htaccess and click the OK button

    05 - htaccess.png
  6. Click on the .htaccess file

    06 - Click htaccess.png
  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

    07 - Click Ok.png