내 웹 사이트 (www.bitumephotofest.it)의 루트를 하위 도메인 (2016.bitumephotofest.it)으로 리디렉션하고 싶습니다. (Wordpress multisite를 실행하고 있습니다.) 그것은 작동합니다.루트가 .htaccess의 한 하위 도메인으로 리디렉션됩니다.
하지만 다른 하위 도메인 (2015.bitumephotofest.it)이 있으며 2016.bitumephotofest.it로 리디렉션됩니다.
리디렉션이 www.bitumephotofest.it와 2016.bitumephotofest.it 사이에서만 작동하기를 원합니다. 2015.bitumephotofest.it는 다른 웹 사이트이므로 독립적이어야합니다.
나는 비슷한 상황에있는 사람들에 의해 질문을하려고했지만 항상 다른 것이 있으며, 어쨌든, 그 해결책은 나를 위해 작동하지 않습니다. 여기
내 코드입니다 :RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteEngine On
RewriteBase/
RewriteCond %{HTTP_HOST} 2016.bitumephotofest.it
RewriteCond %{REQUEST_URI} !wordpress/
RewriteRule ^(.*)$ /wordpress/$1 [L]
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteRule !^(2016) http://2016.bitumephotofest.it [L,R]
사람이 내가 놓친 거지 무엇을 알고 있나요? 미리 감사드립니다. 당신이 2015.bitumephotofest.it
이 수정되지 않은 유지 도메인을 원하는 경우