LoginSignup
5
5

More than 5 years have passed since last update.

.htaccessでサイトをメンテナンスモードに

Posted at
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !\maintenance.html$
RewriteCond %{REMOTE_ADDR} !^***\.***\.***\.***$
RewriteRule ^(.*) /maintenance.html [R,L]
</IfModule>

自分だけは見れるように、%{REMOTE_ADDR} の "***" にあなたのIPアドレスを入れるといいですよ。

何ともタイムリーですね。来年強襲してくるという噂の怨敵「10%」の時のためにもメモメモ。今宵は長そうです。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5