Cerca

Lingua:  
Cerca:

  • Article for your preferred language does not exist. Below is international version of the article.
Versioni tradotte dell'articolo:

How do I force all visitors of my website to use secure connection (HTTPS)? (Linux)

APPLICABILE A:
  • Parallels Plesk Panel for Linux/Unix

Question

How do I force all visitors of my website to use secure connection (HTTPS)?

Answer

1. Make sure that mod_rewrite Apache module is enabled:

~# httpd -t -D DUMP_MODULES | grep rewrite
Syntax OK
 rewrite_module (shared)


2. Create file .htaccess in document root of the domain and put following configuration inside:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>

Web server restart is not required.

 




49af2da0f2dd4c81e962790bbbd0c2b4 5d735c0e028ee5b991e4fb80d34fb87f 56797cefb1efc9130f7c48a7d1db0f0c

FEEDBACK
Questo articolo è stato utile?
Facci sapere come possiamo migliorarlo.
No
 
 
 
 
 
 
Virtualizzazione di Desktop
- Parallels Desktop 8 per Mac
- Parallels Desktop Switch to Mac Edition
- Enterprise
- Parallels Desktop per Mac Enterprise Edition
- Parallels Management Suite per Microsoft SCCM
- Tutti i Prodotti di virtualizzazione di desktop »
Piattaforme di Hosting & di Automazione di Cloud
Parallels Plesk Panel Suite
- Parallels Plesk Panel
- Parallels Plesk Automation
- Parallels Web Presence
Parallels Automation Suite
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
Parallels Virtualization Suite
- Parallels Cloud Server
- Parallels Virtuozzo Containers
- Parallels Virtual Automation
Servizi & Risorse
- Services Cloud Acceleration
- Servizi professionali
- Servizi di supporto
- Training & Certificazione