Maintenance Mode in Kirby?

That’s actually a very nice solution! However this won’t work for subpages (the redirection won’t work). What about this?

<?php

if(file_exists('maintenance.html')) {
  require('maintenance.html');
  die();
}

define('DS', DIRECTORY_SEPARATOR);