Offerta a tempo limitata - a partire da 0,99€/mese
00
GIORNI
13
ORE
03
MINUTI
07
SECONDI
Inizia
×

Conoscenza di base

Trova gli articoli informativi sulle funzionalità, sulle guide per la risoluzione dei problemi,
sulle altre informazioni tecniche relative al servizio hosting di Hostinger.

How can I redirect my HTTP site to HTTPS?

Modificato il:
redirect http https force https ssl

Even though You have an SSL certificate for Your website, your visitors will not use HTTPS while accessing your website by default.

You can simply add the following code to your .htaccess file, which is in your public_html folder, in order to force HTTPS:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example1\.com [NC]

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Just don't forget to change the "example1" to your domain name.

We have a great tutorial about this here - How to Force HTTPS

IMPORTANT: If you do not have a valid SSL certificate installed, your website can become inaccessible due to this redirection. Make sure to verify your SSL is properly setup on your account by manually accessing your website with https:// to see if it works.

  • Costruttore Sitoweb Semplice
  • Garanzia Uptime 99.9%
  • Supporto Live 24/7
  • Potente pannello di controllo
  • Garanzia di rimborso di 30 giorni
Offerta Speciale a Tempo Limitato!
Da
0
99
/mese
Risparmia il 90%
Inizia