Skip to content

Instantly share code, notes, and snippets.

@IvanKolechkin
Created February 20, 2018 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IvanKolechkin/74d08cfe3a5f716b8694eb484728ded1 to your computer and use it in GitHub Desktop.
Save IvanKolechkin/74d08cfe3a5f716b8694eb484728ded1 to your computer and use it in GitHub Desktop.
ModX: Мультиязычность .htaccess
#Мультиязычность
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