Enabling HTTPS redirection via the .htaccess file (Any Plesk version for Linux)

Note: This solution is applicable only if website is processed by Apache.

  • In Plesk, go to Domains > example.com > File Manager.
  • Open the .htaccess  file, if available, or create a new one: click > Create File > type .htaccessin the File Name field > click OK. Once created, click on the file and paste the following content:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>
  • Click OK.

Build Your Website with Hostiko

From professional business to enterprise, we’ve got you covered!

Copyright ©2026 QualiSpace. All rights reserved.

A Platform

QualiSpace
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.