Skip to content

Instantly share code, notes, and snippets.

@Golit
Forked from pitch-gist/gist:2999707
Last active May 9, 2017 14:37
Show Gist options
  • Save Golit/97f4d6a3edb2b50776f7d0bb089a932c to your computer and use it in GitHub Desktop.
Save Golit/97f4d6a3edb2b50776f7d0bb089a932c to your computer and use it in GitHub Desktop.
HTML: Simple Maintenance Page
# BEGIN Server Maintenance
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^203\.0\.113\.10
RewriteCond %{REQUEST_URI} !maintenance.html$ [NC]
RewriteRule . /maintenance.html [L]
</IfModule>
# END Server Maintenance
<!doctype html>
<meta charset="UTF-8">
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 20px; font: 20px Helvetica, sans-serif; color: #333; }
@media (min-width: 768px){
body{ padding-top: 150px; }
}
@media(max-width: 426px){
body{ padding: 20px; }
}
h1 { font-size: 50px; }
article { display: block; text-align: left; max-width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
<article>
<h1>We&rsquo;ll be back soon!</h1>
<div>
<p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. If you need to you can always <a href="mailto:#">contact us</a>, otherwise we&rsquo;ll be back online shortly!</p>
<p>&mdash; The Team</p>
</div>
</article>
@Golit
Copy link
Author

Golit commented May 9, 2017

This fork has some suggestions applied from the comments from the original gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment