<?php $host = $_SERVER['HTTP_HOST']; $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if (strpos($url,'www') === false) { $host = "www.".$host; } include ($host."/index.php"); ?>