redirect non-existing translations to default language EN
parent
bfa2b83ef7
commit
45febcf533
|
@ -8,6 +8,11 @@
|
||||||
|
|
||||||
RedirectMatch permanent "^/zh_tw/?(.*)$" "/zh-tw/$1"
|
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
|
ServerAdmin contact@fsfe.org
|
||||||
DocumentRoot /usr/share/blog/public/
|
DocumentRoot /usr/share/blog/public/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue