htaccess
.htaccessにてhttpアクセスがあった場合 httpsへ転送する <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] </IfModule>
Document rootのhtaccessにて以下記述を追加 「maintenance」などのフォルダを用意してその中にメンテナンス中画面のhtmlを入れておく ErrorDocument 503 /maintenance/index.html <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !=/maintenance/index.html </ifmodule>…