-
-
Save cronfy/6e6344406c7cfeca00b0192b05fbef18 to your computer and use it in GitHub Desktop.
.htaccess 503 Техническое обслуживание сайта (maintenance page)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddDefaultCharset utf-8 | |
ErrorDocument 503 /maintenance.html | |
RewriteEngine On | |
RewriteBase / | |
# uncomment and set your ip to allow your ip to enter | |
#RewriteCond %{REMOTE_ADDR} !1\.2\.3\.4 | |
# block requests to site, but allow let's encypt generation | |
RewriteCond %{REQUEST_URI} !well-known | |
# allow maintenance page itself | |
RewriteCond %{REQUEST_FILENAME} !maintenance.html | |
# show 503 for every request | |
RewriteRule .* /maintenance.html [R=503,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Также смотри maintenance.html