Better Default Domain Pages

This commit is contained in:
earnolmartin 2023-07-13 13:31:59 -06:00
parent bfe8271e6e
commit 093e02d563
16 changed files with 170 additions and 16 deletions

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,6 +1,14 @@
<div style="text-align: center">
<h2>Under Construction</h2>
<p>This site is hosted on an EHCP server, <a href=http://www.ehcp.net>www.ehcp.net</a>, ehcp is a hosting control panel for ubuntu, <br>
To change this, Upload your files inside httpdocs folder using ftp.<br>
(ip:{webserverip})</p>
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>
</div>

View file

@ -1,6 +1,14 @@
<div style="text-align: center">
<h2>Under Construction</h2>
<p>This site is hosted on an EHCP server, <a href=http://www.ehcp.net>www.ehcp.net</a>, ehcp is a hosting control panel for ubuntu, <br>
To change this, Upload your files inside httpdocs folder using ftp.<br>
(ip:{webserverip})</p>
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>
</div>

View file

@ -1,6 +1,14 @@
<div style="text-align: center">
<h2>Under Construction</h2>
<p>This site is hosted on an EHCP server, <a href=http://www.ehcp.net>www.ehcp.net</a>, ehcp is a hosting control panel for ubuntu, <br>
To change this, Upload your files inside httpdocs folder using ftp.<br>
(ip:{webserverip})</p>
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>
</div>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website im Aufbau</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center; font-family: 'arial';">
<h2>Website Under Construction</h2>
<h4><a href="http://ehcpforce.tk" target="_blank">EHCP Force Edition</a></h4>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center">
<h2>Under Construction</h2><br>
Home for {domainname}

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center">
<h2>Subdomain Under Construction</h2><br>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center">
<h2>In Costruzione</h2><br>
{domainname} inizio

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center">
<h2>Sottodominio in Costruzione</h2><br>

View file

@ -1,3 +1,13 @@
<?php
$request = parse_url($_SERVER['REQUEST_URI']);
$path = $request["path"];
$result = rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $path), '/');
if(!empty($result) && $result != "/" && !file_exists(__DIR__ . $result)){
header("HTTP/1.0 404 Not Found");
include 'error_page.html';
exit();
}
?>
<div style="text-align: center">
<h2>Under Construction</h2><br>
Home for {domainname}