+#
+# Redirect everything except www.openstreetmap.org and
+# api.openstreetmap.org to www.openstreetmap.org
+#
+$HTTP["host"] =~ "^api\." {
+ $HTTP["host"] != "api.openstreetmap.org" {
+ url.redirect = ( "^(.*)$" => "http://api.openstreetmap.org$1" )
+ }
+}
+else $HTTP["host"] != "www.openstreetmap.org" {
+ url.redirect = ( "^(.*)$" => "http://www.openstreetmap.org$1" )
+}
+