Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created March 16, 2023 10:36
Show Gist options
  • Save thierrypigot/3fd035988160811f5b4d0dd80034489a to your computer and use it in GitHub Desktop.
Save thierrypigot/3fd035988160811f5b4d0dd80034489a to your computer and use it in GitHub Desktop.
Mettre WordPress en maintenance
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
RewriteRule .* /maintenance.html [R=503,L]
ErrorDocument 503 /maintenance.html
Header Set Cache-Control "max-age=0, no-store"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment