chendeben vor 8 Jahren
Ursprung
Commit
99f7fc24b8
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      www/index.php

+ 5 - 0
www/index.php

@@ -1,4 +1,9 @@
 <?php
 <?php
+if($_SERVER['SERVER_PORT']=="80"){
+    Header("HTTP/1.1 301 Moved Permanently");
+    header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
+    die();
+}
 header("Content-Type:text/html; charset=utf-8");
 header("Content-Type:text/html; charset=utf-8");
 define("APP_PATH",dirname(dirname(__FILE__))."/app/");
 define("APP_PATH",dirname(dirname(__FILE__))."/app/");
 require_once APP_PATH.'conf/config.php';
 require_once APP_PATH.'conf/config.php';