htaccess

[htaccess]時限設定でメンテナンス切り替え

More than 3 years have passed since last update.

ErrorDocument 503 /maintenance.html

RewriteEngine On
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR}%{TIME_MIN} >201406261117
RewriteCond %{REQUEST_URI} !=/maintenance.html
RewriteCond %{REMOTE_ADDR} !=192.168.11.240
RewriteRule ^.*$ - [R=503,L]