Created
February 20, 2018 10:16
-
-
Save IvanKolechkin/74d08cfe3a5f716b8694eb484728ded1 to your computer and use it in GitHub Desktop.
ModX: Мультиязычность .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Мультиязычность | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(ru|en|de)/favicon.ico$ favicon.ico [L,QSA] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(ru|en|de)/assets(.*)$ assets$2 [L,QSA] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(ru|en|de)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA] | |
#Конец |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment