redirect non-existing translations to default language EN

lektura
max.mehl 2019-01-23 14:50:08 +01:00
parent bfa2b83ef7
commit 45febcf533
No known key found for this signature in database
GPG Key ID: 2704E4AB371E2E92
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@
RedirectMatch permanent "^/zh_tw/?(.*)$" "/zh-tw/$1"
# redirect all requests to non-existing translations to EN
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^[a-z-]*/(.+) $1 [L,R=301]
ServerAdmin contact@fsfe.org
DocumentRoot /usr/share/blog/public/