chendeben 8 anos atrás
pai
commit
99f7fc24b8
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      www/index.php

+ 5 - 0
www/index.php

@@ -1,4 +1,9 @@
 <?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");
 define("APP_PATH",dirname(dirname(__FILE__))."/app/");
 require_once APP_PATH.'conf/config.php';