Browse Source

put language redirect in htaccess

pull/311/head
Max Mehl 6 months ago
parent
commit
d9d0d2a0e5
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      000-default.conf

+ 0
- 5
000-default.conf View File

@@ -7,11 +7,6 @@
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…
Cancel
Save