aboutsummaryrefslogtreecommitdiff
path: root/.htaccess.in
blob: 603b2ebe5f11cb87bf3a7fc3f5594ca710a4caf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Options -Indexes
<Files *.html>
  SetHandler type-map
</Files>

SetEnvIf Request_URI ^/(ru|pl|uk)/ prefer-language=$1
RedirectMatch 301 ^(?:/(ru|pl|uk)){2,}(/.*)?$ /$1$2
LanguagePriority ru pl uk
ForceLanguagePriority Prefer Fallback

RewriteEngine on

# --BEGIN MAINTENANCE RULES---
RewriteCond @HTMLDIR@/.maintenance -f
RewriteCond %{REQUEST_FILENAME} !.*/maint.html
RewriteCond %{REQUEST_FILENAME} !.*\.css
RewriteCond %{REQUEST_FILENAME} !.*\.png
RewriteRule .*		/maint.html [L]
# --END MAINTENANCE RULES---

RewriteRule (.+)/dict.html @SCRIPT_DIR@/dict.@SCRIPT_SUFFIX@?LANG=$1 [L]
RewriteRule (.+)/nea.html @SCRIPT_DIR@/nea.@SCRIPT_SUFFIX@?LANG=$1 [L]
RewriteRule (.+)/nea.rss  @SCRIPT_DIR@/nea.@SCRIPT_SUFFIX@?LANG=$1&rss=1 [L]

Return to:

Send suggestions and report system problems to the System administrator.