특정 IP 외는 공사중 화면 표시하기 .htaccess RewriteEngine
프리이미지
본문
지정된 IP 외는공사중 화면 표시한다.
(이미지를 제외하고 적용됨)
# BEGIN WordPress
# <Files *>
# order deny,allow
# deny from all
# allow from 111.222.333.444
# </Files>
RewriteEngine on
RewriteCond %{REQUEST_URI} !=*\.jpg$ [NC]
RewriteCond %{REQUEST_URI} !(under_construction\.html|\.jpg)$ [NC]
RewriteCond %{REMOTE_ADDR} !^111.222.333.444
RewriteCond %{REMOTE_ADDR} !^111.222.333.444
RewriteCond %{REMOTE_ADDR} !^111.222.333.444
RewriteRule $ /under_construction.html [R=302,L]
# END WordPress
댓글목록
등록된 댓글이 없습니다.