Skip to content

Instantly share code, notes, and snippets.

@bavington
Created August 20, 2013 07:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bavington/6278354 to your computer and use it in GitHub Desktop.
Save bavington/6278354 to your computer and use it in GitHub Desktop.
Declare a 503 Status via PHP for SEO friendly downtime.
<?php
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Retry-After: Sat, 8 Oct 2011 18:27:00 GMT'); //How long before you estimate your website will be back.
?>
<!DOCTYPE HTML>
<html>
<head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment