The others will be redirected to the english one.
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/www.ipfire.org/trunk@1024
ea5c0bd1-69bd-2848-81d8-
4f18e57aeed8
<div id="menu">
<ul>
- <!--#if expr="$SERVER_NAME != source.ipfire.org" -->
+ <!--#if expr="$SERVER_NAME = source.ipfire.org" -->
+ <li><a href="source.shtml">Source</a></li>
+ <!--#else -->
<li><a href="index.shtml">Home</a></li>
<li><a href="downloads.shtml">Downloads</a></li>
<li><a href="http://wiki.ipfire.org/">Wiki</a></li>
#!/usr/bin/perl
+my $lang = "en";
+
+# Set language to german, else use english site
+if ($ENV{'HTTP_ACCEPT_LANGUAGE'} =~ /^de(.*)/) {
+ $lang = "de";
+}
+
print "Status: 302 Moved\n";
print "Pragma: no-cache\n";
if ($ENV{'SERVER_NAME'} eq "source.ipfire.org") {
- print "Location: /en/source.shtml\n";
+ print "Location: /$lang/source.shtml\n";
} else {
- print "Location: /en/index.shtml\n";
+ print "Location: /$lang/index.shtml\n";
}
# End http header...