Created
June 7, 2023 11:24
-
-
Save navotera/c35504de7ad3188faabda02c4a0aa57a to your computer and use it in GitHub Desktop.
for maintenance index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Usage: | |
* Download and unzip the file then RENAME it to index.php | |
* Into the code find "your site name goes here" and put your Board's/Site's name in there. | |
* SAVE this file. | |
* | |
* Rename your (i.e.: www.mydomain.com/phpBB3/index.php) to something else you like (as a backup) | |
* Upload THIS renamed file to your Board's root (i.e.: www.mydomain.com/phpBB3/) | |
* Point your browser to i.e.: www.mydomain.com/phpBB3/index.php), once finished delete this | |
* file and RENAME your backuped file back to (i.e.: www.mydomain.com/phpBB3/index.php). | |
* | |
* @package Maintenance Redirection v1.0.0 (11 May 2016) | |
* @copyright (c) 2016 3Di (Marco T.) | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 | |
* | |
*/ | |
header("HTTP/1.1 503 Service Unavailable"); | |
header("Status: 503 Service Unavailable"); | |
header("Retry-After: 3600"); | |
/* Create a HTML5 responsive page */ | |
echo '<!DOCTYPE html>'; | |
echo '<html>'; | |
echo '<head>'; | |
echo '<meta charset="utf-8">'; | |
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge">'; | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1">'; | |
echo '<title>Temporarily Unavailable</title>'; | |
echo '<meta name="robots" content="none" />'; | |
echo '<style type="text/css"> | |
body { | |
font-size: 1.1em; | |
background-color: lightyellow ; | |
} | |
</style>'; | |
echo '</head>'; | |
echo '<body>'; | |
echo 'The site <font style="color:darkblue"><i><b>your site name goes here</b></i></font> is under temporary maintenance.'; | |
echo '<br /><br />'; | |
echo 'Due to the fact we don\'t want that search engines index that page while doing this job..'; | |
echo '<br />'; | |
echo '.. the <i>"HTTP/1.1 503 Service Unavailable"</i> Header is given.'; | |
echo '<br /><br />'; | |
echo 'Hope you\'ll understand. :) .. <font style="color:darkgreen"><b>The Board\'s management.</b></font>'; | |
echo '<br /><br />'; | |
echo 'We are doing our best to make this story short. Please try again later.'; | |
echo '</body>'; | |
echo '</html>'; | |
echo '<br /><br />'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment