publiccode.si/site/static/.htaccess

11 lines
266 B
ApacheConf

RewriteEngine On
RewriteBase /
# redirect all requests to non-existing translations to EN
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^[a-z-]*/(.+) $1 [L,R=301]
# Redirect 404 errors to nice page
ErrorDocument 404 /404.html