*/}}
浏览代码

Changed to HTTPS redirect

Yiming Wu 3 年之前
父节点
当前提交
71e74e9ff1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -87,7 +87,7 @@ class LA{
         if(isset($this->Redirect) && isset($this->Redirect[0])) foreach($this->Redirect as $r){
         if(isset($this->Redirect) && isset($this->Redirect[0])) foreach($this->Redirect as $r){
             if($r['for']=='S'){
             if($r['for']=='S'){
                 if(preg_match('/'.$r['format'].'/ui', $_SERVER['HTTP_HOST'])){
                 if(preg_match('/'.$r['format'].'/ui', $_SERVER['HTTP_HOST'])){
-                    header('Location:http://'.$r['domain'].'/index.php?post='.$r['target']); exit;
+                    header('Location:https://'.$r['domain'].'/index.php?post='.$r['target']); exit;
                 }
                 }
             }
             }
         }
         }