Suche

Sprache:  
Suchen nach:

  • Article for your preferred language does not exist. Below is international version of the article.
Verfügbare Übersetzungen:

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

GILT FÜR:
  • 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
War dieser Artikel hilfreich?
Sagen Sie uns, wie wir ihn verbessern können.
Ja Nein
 
 
 
 
 
 
Desktopvirtualisierung
- Parallels Desktop 8 für Mac
- Parallels Desktop 8 Switch to Mac Edition
- Unternehmenslösungen
- Parallels Desktop für Mac Enterprise Edition
- Parallels Management-Mac für Microsoft SCCM
- Alle Desktopvirtualisierungsprodukte >>
Hosting- & Cloud-Automatisierungsplattformen
Parallels Plesk Panel Suite
- Parallels Plesk Panel
- Parallels Plesk Automation
- Parallels Web Presence Builder
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
Services & Weiterführende Informationen
- Cloud Acceleration Services
- Professional Services
- Support Services
- Schulungen & Zertifizierung