2011-04-05 7 views
0

가능한 중복 :
.htaccess redirecthtaccess로 재

정확히 어떻게, 내가 추정하고 있습니다 .htaccess 파일과 함께, 내가이 URL에서 사람들을 리디렉션합니다 : http://blog.twostepmedia.co.uk/win-traffic-with-charlie-sheen-and-the-yahoo-boss-api/http://www.twostepmedia.co.uk/blog/win-traffic-with-charlie-sheen-and-the-yahoo-boss-api/ 같은 것으로

고마워요 :)

+0

속는 http://stackoverflow.com/questions/1190376/a-simple-htaccess-redirect, http://stackoverflow.com/questions/3374696/htaccess-url- redirect, http://stackoverflow.com/questions/3798252/simple-redirect-using-htaccess 등 다양한 기능을 제공합니다. – Robert

답변

2

당신은 더 나은거야. g blog.twostepmedia.co.uk 도메인의 .htaccess에서 다시 쓰기 규칙.

뭔가

RewriteEngine on 
RewriteOptions MaxRedirects=10 # this will just stop and bugs in the code causing a infinite loop 
RewriteRule ^(.+)$ http://www.twostopmedia.co.uk/blog/$1 [R=301,NC] 

'blog.twostepmedia.co.uk/를'다음 새로운 URL로 재 작성에 상관없이 다시 쓰기 규칙 잡고

있다. [R = 301, NC]는 이것을 영구적 인 리디렉션으로 설정합니다. 즉, 검색 엔진 스파이더가 중복 된 콘텐츠로부터 페널티를받지 않을 것입니다. 도움이 :)

희망