11
임 하나의 디렉토리에서 새 사이트로 301 리디렉션을 만들려고하는데 설정하는 데 문제가 있습니다. 301 모든 페이지를 새 사이트로 리디렉션 1 디렉토리 제외
http://www.example.com/store => no redirects, users remain on http://www.example.com/store
http://www.example.com/* => all other pages go to this url http://www.newdomain.com/
AKA
http://www.example.com/apple => http://www.newdomain.com/
http://www.example.com/pie => http://www.newdomain.com/
http://www.example.com/foo/bar => http://www.newdomain.com/
나는이 방법을 시도 :
RewriteEngine on
RewriteCond %{REQUEST_URI}!^/store/
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
을하지만 http://www.example.com/store에 갈 때 기본적으로 내가 디렉토리가 필요 http://www.newdomain.com/store
에 저를 필요
이
내가 필요한 기본적으로/store는 이전 도메인에 남아 있습니다. 누구든지 도와 줄 수 있습니까? .htaccess 규칙에 익숙하지 않은 경우 ...
고전적인 경우가 아니어야하는 경우. 감사! – Tom