]> git.ipfire.org Git - ipfire.org.git/commitdiff
Redirect http://people.ipfire.org/.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Jan 2009 18:57:15 +0000 (19:57 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Jan 2009 18:57:15 +0000 (19:57 +0100)
people/index.py [new symlink]
www/index.py

diff --git a/people/index.py b/people/index.py
new file mode 120000 (symlink)
index 0000000..122a725
--- /dev/null
@@ -0,0 +1 @@
+../www/index.py
\ No newline at end of file
index 87044ed9c0384bf65bfbfd2e3f56fd78ed023c4a..2e299052902c0d7a820de1d19ebc188f39507c7c 100755 (executable)
@@ -4,14 +4,6 @@ import os
 import re
 import cgi
 
-sites = (
-                       ("ipfire.org", ("www.ipfire.org", None)),
-                       ("www.ipfire.org", (None, cgi.FieldStorage().getfirst("file") or "index")),
-                       ("source.ipfire.org", ("www.ipfire.org", "source")),
-                       ("tracker.ipfire.org", ("www.ipfire.org", "tracker")),
-                       ("download.ipfire.org", ("www.ipfire.org", "download")),
-               )
-
 # Check language...
 language = "en"
 try:
@@ -20,6 +12,17 @@ try:
 except KeyError:
        pass
 
+index = cgi.FieldStorage().getfirst("file") or "index"
+
+sites = (
+                       ("ipfire.org", ("www.ipfire.org", None)),
+                       ("www.ipfire.org", (None, index + "/%s" % language)),
+                       ("source.ipfire.org", ("www.ipfire.org", "source/" + language)),
+                       ("tracker.ipfire.org", ("www.ipfire.org", "tracker/" + language)),
+                       ("download.ipfire.org", ("www.ipfire.org", "download/" + language)),
+                       ("people.ipfire.org", ("wiki.ipfire.org", language + "/people/start")),
+               )
+
 print "Status: 302 Moved"
 print "Pragma: no-cache"
 
@@ -30,7 +33,7 @@ for (servername, destination) in sites:
                if destination[0]:
                        location = "http://%s" % destination[0]
                if destination[1]:
-                       location += "/%s/%s" % (destination[1], language,)
+                       location += "/%s" % destination[1]
                break
 
 print "Location: %s" % location