Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Created April 23, 2019 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WordPress-Handbuch/2971854a51b1df607511b3e99a84fe53 to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/2971854a51b1df607511b3e99a84fe53 to your computer and use it in GitHub Desktop.
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