我正在尝试使我的站点脱机以进行维护,但只允许访问我的IP地址。然而,我只能设法产生一个内部服务器错误。我不明白我到底做错了什么。我想让普通人帮我保养一下。php和我得到的普通WordPress重定向规则和页面。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^maintenance\\.php$ - [L] # Direct requests to maintenance.php should show file and stop
#RewriteCond %{REQUEST_URI} !\\.(jpe?g?|png|gif) [NC] # Give access to images on maintenance page
#RewriteCond %{REMOTE_ADDR} !^xxx\\.xxx\\.xxx\\.xxx # My IP goes here
RewriteRule . /maintenance.php [R=302,L]
# Normal WordPress rules
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>