redirect non-existing translations to default language EN
parent
bfa2b83ef7
commit
45febcf533
|
@ -7,6 +7,11 @@
|
|||
ServerName publiccode.eu
|
||||
|
||||
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/
|
||||
|
|
Loading…
Reference in New Issue