Since an index.htm file is required by WD, if the php script is to be inserted into the index page could you have the script on index.php with the desired page content on and have index.htm with only a redirect code on redirecting to index.php and that way all the links remain working to the home page? Or would that cause issues for search engines etc?