.htaccess 1.11 KB
Newer Older
David's avatar
David committed
1 2 3 4
## Default .htaccess file

RewriteEngine on

David's avatar
David committed
5 6 7 8
#RewriteBase /

RewriteRule ^Autonome.php$ index.php?langue=fr&%{QUERY_STRING} [L]
RewriteRule ^StandAlone.php$ index.php?langue=en&%{QUERY_STRING} [L]
9
RewriteRule ^Translate-in-context.php$ index.php?langue=aa&%{QUERY_STRING} [L]
David's avatar
David committed
10

David's avatar
David committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
# Support de tout les codes langues :
# https://support.crowdin.com/api/language-codes/
# Spécial Montenegrin : sr-Cyrl-ME
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^sr-Cyrl-ME(.*) index.php?langue=sr-Cyrl-ME&%{QUERY_STRING}
# xx-YY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z]{2}-[A-Z]{2})(.*) index.php?langue=$1&%{QUERY_STRING}
# xxx-YY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z]{3}-[A-Z]{2})(.*) index.php?langue=$1&%{QUERY_STRING}
# xxx
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z]{3})(.*) index.php?langue=$1&%{QUERY_STRING}
# xx
David's avatar
David committed
30 31 32 33
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z]{2})(.*) index.php?langue=$1&%{QUERY_STRING}