<?php $rnd = rand(1, 10); $filename = "ads" . $rnd; $url = $HTTP_SERVER_VARS['SERVER_NAME'] . $HTTP_SERVER_VARS['REQUEST_URI']; switch ($url) { case "www.moneymakingstudent.co.uk/index.php": include ("http://www.purplesunset.co.uk/main/basic/matchedindex.php"); break; case "www.moneymakingstudent.co.uk/": include ("http://www.purplesunset.co.uk/main/basic/matchedindex.php"); break; default: include ("http://www.purplesunset.co.uk/main/basic/$filename.php"); break; }; ?> PHP: For some reason only the default is being shown, I am using wordpress, not sure if that is causing the problem? Any help or suggestions would be great, Many thanks Martyn