난 그냥 (아무것도)를 언어를 다시 작성하지 원하는 : EN> LANG/EN, ES> LANG/ES ... 등 아파치 재 작성이 간단한 규칙
http://domain.com/en > http://domain.com/lang/en
http://domain.com/es > http://domain.com/lang/es
http://domain.com/en/places?User=1 > http://domain.com/lang/en/places?User=1
http://domain.com/es/places?User=1 > http://domain.com/lang/es/places?User=1
나의 현재 .htacces
은 다음과 같습니다Options +FollowSymlinks
RewriteEngine On
RewriteBase/
RewriteRule ^en(.*)$ lang/en$1 [NC,L]
RewriteRule ^es(.*)$ lang/es$1 [NC,L]
제발, 맞습니까? 최종 URL : http://domain.com/lang/en/places?User=1이 표시되고 브라우저에 http://domain.com/en/places?User=1이 표시됩니다. 가능할 수 있습니까?
대단히 감사합니다.
브라우저를 리디렉션하는 디렉토리가 없거나 디렉토리에 액세스하고 있거나 아파치가 디렉토리라고 생각하는 내용이 있으며 슬래시로 리디렉션됩니다. 브라우저의 주소 표시 줄에 나타나는 URL이 슬래시로 끝나지 않습니까? –