Attivare il certificato SSL per l’inoltro

Skip to main content
Du bist hier:
Drucken

Attivare il certificato SSL per l’inoltro

Certificato SSL per l’inoltro

  1. Disattivare l’inoltro di Plesk e cambiare il dominio in hosting normale.
  2. Assicurarsi che il certificato per il dominio sia già attivato. In caso contrario, installare prima un certificato.
  3. Successivamente si creano con il FileManager 2 i file ‘.htaccess’ e index.php. Poi li riempite con i seguenti contenuti:

.htaccess:

RewriteEngine on
RewriteBase /
RewriteRule (.*) https://www.musterdomain.ch/$1 [R=301,L]
[/code]

 

index.php:

<?php
header("Location: https://www.musterdomain.ch/");exit;
?>;

 

Inoltro SSL con iframe Per reindirizzare la pagina iniziale, creare un file index.html con il seguente contenuto:

<html>
  <head>
    <title>FireStorm Umleitung</title>
  </head>
  <style>
    body {
      margin: 0;
      padding: 0;
    }

    body,
    iframe {
      width: 100%;
      height: 100%;
    }

    iframe {
      border: 0;
    }
  </style>
  <body>
    <iframe src="https://www.meinezielurl.tld" />
  </body>
</html>

 

In seguito è sufficiente reindirizzare la ‘radice del documento’ alla nuova directory “redirect” e attivare il certificato SSL gratuito ‘Lets Encrypt’ nelle impostazioni di hosting del sito web.

TipUnder Hosting Settings è possibile abilitare permanentemente il reindirizzamento da HTTP a HTTPS.

Related Post