Different content for different domains in 1 file
<p>trying to have a index.php file for 3 different domains... so I need to display different content for the different domains. But want it to work also on "sub folders" for sub folders I mean site1.com/some_content</p>

<p>this is my code but it doesn't work as I want.</p>

<pre><code>&lt;?php
    $host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    if($host == 'site1.com')  {
        echo "A LOT OF HTML JAVASCRIPT AND CSS";
    }
    if($host == 'site2.com')  {
        echo "Same here but different content";
    }
    if($host == 'site3.com')  {
        echo "Cats and flowers";
    }
?&gt;
</code></pre>

<p>any ideas? Thanks!</p>
