]>
git.ipfire.org Git - ipfire.org.git/blob - www/index.py
8 ("ipfire.org", ("www.ipfire.org", None)),
9 ("www.ipfire.org", (None, cgi
.FieldStorage().getfirst("file") or "index.shtml")),
10 ("source.ipfire.org", (None, "source.shtml")),
11 ("tracker.ipfire.org", (None, "tracker.shtml")),
12 ("download.ipfire.org", (None, "download.shtml")),
18 if re
.search(re
.compile("^de(.*)"), os
.environ
["HTTP_ACCEPT_LANGUAGE"]):
23 print "Status: 302 Moved"
24 print "Pragma: no-cache"
28 for (servername
, destination
) in sites
:
29 if servername
== os
.environ
["SERVER_NAME"]:
31 location
= "http://%s" % destination
[0]
33 location
+= "/%s/%s" % (language
, destination
[1])
36 print "Location: %s" % location
37 print # End the header