Skip to content

Instantly share code, notes, and snippets.

@l4ci
Created January 9, 2018 10:14
Show Gist options
  • Save l4ci/d81ca09027354c90e1d764451b79c41d to your computer and use it in GitHub Desktop.
Save l4ci/d81ca09027354c90e1d764451b79c41d to your computer and use it in GitHub Desktop.
# Wartungsmodus
RewriteCond %{REMOTE_ADDR} !=84.46.78.143
RewriteCond %{REQUEST_URI} !=/wartung.html
RewriteRule ^(.*)$ /wartung.html?%{REMOTE_ADDR} [R=503,L]
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Wartungsmodus</title>
<meta http-equiv="refresh" content="5; URL=/">
</head>
<body>
<center>
<h1>Wartungsmodus</h1>
<p>Diese Webseite befindet sich derzeit im Wartungsmodus<br>
- versuchen Sie es in einigen Minuten nochmal!</p>
</center>
<script>
setTimeout(function(){ window.location = '/'; }, 5000);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment