사이트 내 전체검색
wordpress
특정 IP 외는 공사중 화면 표시하기 .htaccess RewriteEngine
프리이미지
https://cmd.kr/wp/40 URL이 복사되었습니다.

본문

지정된 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​ 

댓글목록

등록된 댓글이 없습니다.

wordpress
43 (1/1P)

Search

Copyright © Cmd 명령어 18.118.227.69