# Maintenance mode
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.*$ - [R=503,L]
ErrorDocument 503 "This site is currently under maintenance by the hosting provider. Please try again in a few minutes."
<IfModule mod_headers.c>
Header Always Set Cache-Control "max-age=0, no-store"
Header Always Set Retry-After "60"
</IfModule>
</IfModule>
# Maintenance mode
Thanks Kristin, I'll give that a go.I'm not aware of anything, but you can insert a custom httpd configuration for the domain. We use this method as part of a user migration script, for example:
Apache config:# Maintenance mode <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^.*$ - [R=503,L] ErrorDocument 503 "This site is currently under maintenance by the hosting provider. Please try again in a few minutes." <IfModule mod_headers.c> Header Always Set Cache-Control "max-age=0, no-store" Header Always Set Retry-After "60" </IfModule> </IfModule> # Maintenance mode