분류
php
.htaccess을 이용하여 다른 도메인으로 넘기기
본문
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain1.com$
RewriteCond %{HTTP_HOST} ^domain1.com$
RewriteRule ^(.*) http://domain2.com/$1 [L,R=301]
- 이전글.htaccess화일을 이용한 301 Redirect 15.05.18
- 다음글웹페이지에서 모든 링크 얻기 15.05.18