2010-04-13 3 views
1

그래서 오프라인 상태로 만들 사이트가 있습니다. developmentsite.com을 사용하고 새 사이트로 리디렉션하고 싶습니다.301 리디렉션 및 사이트 별칭

그래서 301 리디렉션을 수행합니다.

리디렉션 301/http://www.newssite.con. 이제 developmenite.com에서 계속 작업하고 싶습니다. 따라서 내 사이트의 별칭으로 설정했습니다.

mysite.developmentsite.com .httaccess가 기본 httpdocs 폴더의 두 사이트 모두 리디렉션되기 때문에.

별칭 리디렉션을 어떻게 중지 할 수 있습니까?

감사합니다,

로스

답변

0

당신은이에 대한 mod_rewrite를 필요합니다.

RewriteEngine On 
RewriteBase/
# exclude the dev site 
RewriteCond %{HTTP_HOST} !^mysite\.developmentsite\.com$ 
RewriteRule^http://www.newssite.com/ [L,R=301]