도메인 이름이 www.domain.com으로 다음과 같은 방식으로 도메인 B으로 리디렉션하고 싶습니다..htaccess - 리디렉션 도메인 이름
www.domainA.com
->www.domainB.com
www.domainA.com/anything
->www.domainB.com/rebrand
내가 htaccess로에서이 작업을 수행 할 수있는 방법, 나는 다음 코드를 수행했지만 그것은 단지 /rebrand/
로 리디렉션.
RewriteCond %{REQUEST_URI} ^\/
RewriteRule ^\/$ http://www.domainB.com/ [L,R=301]
RewriteCond %{HTTP_HOST} ^domainA\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainB.com/rebrand/ [L,R=301]