여수대우전자서비스센터
.htaccess 파일의 Rewrite Module을 이용해서 도메인 주소 변경
여수공동체
Server
0
1778
2015.12.02 00:53
■ index.html 위치에 .htaccess 파일 생성하고 아내 내용을 적어준다.
# Rewrite Module
RewriteEngine On
# 예: www.yjn.kr ==> www.g-it.kr 로 변경
RewriteCond %{HTTP_HOST} ^(www\.yjn\.kr)(:80)? [NC]
RewriteRule ^(.*) http://www.g-it.kr/$1 [R=301,L]