aboutsummaryrefslogtreecommitdiff
path: root/.htaccess.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-02-28 17:32:55 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2010-02-28 17:32:55 +0000
commit1f4db8b352f6c039272ceb1a0855e4f2c515e972 (patch)
treef7b03c6cb746a5f5119a056b0b1ac0ba636b89a9 /.htaccess.in
parentaddbc1b7c0caa303ad78dc9af148d00310856d77 (diff)
downloadellinika-1f4db8b352f6c039272ceb1a0855e4f2c515e972.tar.gz
ellinika-1f4db8b352f6c039272ceb1a0855e4f2c515e972.tar.bz2
Improve language selection support + change appearance a bit.
* .htaccess.in: Use type-map to handle automatic language selection. * style.css (div.contentpanel): Set vertical align. (div.navbar > img): New selector. Center the Parthenon image. (ul.menu): Change navigation menu appearance. * configure.ac: Require autoconf 2.63 (AC_CONFIG_FILES): Add html-files/Makefile * Makefile.am (SUBDIRS): Add html-files . (html_DATA, EXTRA_DIST): Reflect changes to the root directory. * index.html: New file. * maint.html: Rewrite as a type-map. * disp.html, index.scml: Remove. * html-files/pl/maint.html: New file. * html-files/ru/maint.html: New file. * html-files/uk/maint.html: New file. git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@530 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to '.htaccess.in')
-rw-r--r--.htaccess.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/.htaccess.in b/.htaccess.in
index 3e1db9a..603b2eb 100644
--- a/.htaccess.in
+++ b/.htaccess.in
@@ -1,3 +1,13 @@
+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---

Return to:

Send suggestions and report system problems to the System administrator.