Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress 5 dropin /wp-content/maintenance.php, a custom maintenance message when using the .maintenance-mechanism in the main directory
<?php
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600');
?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Website wird gewartet</title>
</head>
<body>
<h1>Eine eigene Wartungsmeldung bei Einsatz des .maintenance-Mechanismus im Hauptverzeichnis</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment