support for subdomains on the sourceforge hosting site

This commit is contained in:
Dennis Luxen 2011-05-12 09:02:38 +00:00
parent 0a29df80d0
commit 5c0ed9229d
2 changed files with 11 additions and 0 deletions

11
Docs/Webpage/index.php Normal file
View File

@ -0,0 +1,11 @@
<?
$url = $_SERVER['HTTP_HOST'];
if($url == "map.project-osrm.org") {
$file = file_get_contents('map.html');
echo $file;
return;
}
$file = file_get_contents('main.html');
echo $file;
return;
?>