Skip to content

Instantly share code, notes, and snippets.

@mrwacky42
Created January 31, 2014 21:25
Show Gist options
  • Save mrwacky42/8743508 to your computer and use it in GitHub Desktop.
Save mrwacky42/8743508 to your computer and use it in GitHub Desktop.
# redirect to a startup page when there is no pidfile yet
RewriteEngine On
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} !^/thruk/startup.html
RewriteCond %{REQUEST_URI} !^/thruk/side.html
RewriteCond %{REQUEST_URI} !^/thruk/.*\.(css|png|js)
RewriteCond %{REQUEST_URI} ^/thruk
RewriteCond /var/cache/thruk/thruk.pid !-f
RewriteRule ^(.*)$ /thruk/startup.html?$1 [R=302,L,NE,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment