서브 사이트를 사용하는 실제로 멀티 사이트 인 사이트가 있으며 서브 폴더 번역을 하위 도메인으로 다시 매핑하고 싶습니다.Wordpress 하위 폴더를 하위 도메인으로 리디렉션
이domain.com/fr/ (for the French translation)
blog.domain.com/fr/ (for the French translation)
나는 다음과 같은 싶은 : WPML와
domain.com (main site)
blog.domain.com (mu site for the blog)
, 내가 가진
domain.com/fr/ --> fr.domain.com
blog.domain.com/fr/ --> blogue.domain.com
내가이 재 작성 규칙을 할 수 있다고 생각하지만, 그럴 수 없어 제대로 작동하도록하십시오. 당신의 도움에 대한
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule^- [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
많은 감사 :
다음은 현재 기본에게 워드 프레스 MU htaccess로입니다!
거의 다! 리다이렉션은 작동하지만 domain.com/fr은 fr.domain.com으로 이동하지만 Wordpress MU는 새로운 fr.domain.com을 만들 것인지 묻습니다. 하위 사이트. fr.domain.com을 표시하지만 백그라운드에서 domain.com/fr을 표시하는 방법이 있습니까? 감사합니다. – Vallieres
불행히도'fr.domain.com'을'domain.com'으로 변경하면 외부로 만들 것입니다. 리디렉션. 가능한 유일한 방법은'mod_proxy'를 사용하고'P' 플래그를 사용하는 것입니다 (아파치 설정에서 mod_proxy를 활성화해야합니다) – anubhava
이것은 새로운 프로젝트이므로 모든 것이 가능합니다. :) 그 mod_proxy 변경에 대한 자세한 정보가 있습니까? 할 필요가? 감사! – Vallieres