forked from Adleraci/adlerka.top
fix
This commit is contained in:
@@ -5,6 +5,8 @@ session_start();
|
||||
|
||||
$default_page = "domov";
|
||||
|
||||
$default_site = "home";
|
||||
|
||||
$template_dir = "templates/";
|
||||
|
||||
$static_page_dir = "pages/";
|
||||
@@ -21,8 +23,13 @@ $srvname = $_SERVER["SERVER_NAME"];
|
||||
|
||||
$protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && !empty($_SERVER['HTTP_X_FORWARDED_PROTO']) ? "https://" : "http://";
|
||||
|
||||
if (empty($tld)){
|
||||
header("Location: $protocol$default_site.$subdomain.$domain/$default_page");
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($page_name)){
|
||||
header("Location: $protocol$domain.$tld/$default_page");
|
||||
header("Location: $protocol$subdomain.$domain.$tld/$default_page");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user