.htaccess : redirect HTTP to HTTPS

Submitted by Gast (nicht überprüft) on Sa, 12/16/2017 - 17:45

 

  RewriteEngine on
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

 

Comments

Gespeichert von Gast (nicht überprüft) am/um Mo, 03/12/2018 - 19:18

Permanenter Link

Von Godaddy empfohlen :

 

RewriteEngine On

RewriteCond %{HTTPS} off

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

 

Unterschied ist:

RewriteRule ^(.*)$

 

Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.