|
|
@@ -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';
|