2012-05-14 3 views

답변

1

루트 디렉토리의 .htaccess 파일에이 정보를 넣는 것은 물론, mod_rewrite가 설치되어 있고 사용 가능하다고 가정하고 AllowOverride All이 conf 파일의 VirtualHost에 설정되어 있어야합니다. 주소 표시 줄은 변경되지 않습니다.

RewriteEngine On 
RewriteRule ^(.*)$ en/$1 [L, NC, QSA] 
+0

어떻게 htaccess가 언어를 결정하고 좋은 주소로 리디렉션 될 수 있습니까? 프랑스어 예 : www.site.com/fr. –

+1

다음 조건을 시험해보십시오 :'RewriteCond % {HTTP : Accept-Language}^fr [NC]''RewriteRule^(. *) $ fr/$ 1 – Ansari