Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Individuel gestalteter Wartungsmodus
$protocol = $_SERVER['SERVER_PROTOCOL'];
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) {
$protocol = 'HTTP/1.0';
header( "$protocol 503 Service Unavailable", true, 503 );
header( 'Content-Type: text/html; charset=utf-8' );
header( 'Retry-After: 600' );
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Wordpress Wartungsmodus</title>
body { background-color: #000000; color: #ffffff; font-family: Avenir, sans-serif; font-size: 20px; }
h1 { color: #ffffff; font-family: Avenir, sans-serif; font-size: 40px; }
<meta http-equiv="refresh" content="5; URL=">
<div align="center">
<p><img src="" alt="Wordpress Logo weiss"></p>
<h1>Wordpress Wartungsmodus</h1>
<p>Wordpress aktualisiert gerade seine Software.<br />Das dauert in der Regel nur wenige Sekunden.<br />
Die Webseite wird automatisch wieder angezeigt, sobald das Update abgeschlossen ist.
<p><img src="" alt="Warten Animation" width="50" height="50">
<br /><img src="" alt="Linie" width="900" height="1"></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment