php redirect from certain referral domain
<p>On stackereurope.com are European contact details.</p>

<p>Now there is a new domain for the UK called stackereurope-uk.com.</p>

<p>It should display the same website only with different contact details.</p>

<p>I am thinking about this solution:
On the UK domain I put an iframe that opens the original website.</p>

<p>On the original website I put (on the contact page)
If the referral is stackereurope-uk.com redirect to stackereurope-uk.com/contact/</p>

<p>The code to redirect should be something like this?</p>

<pre><code>&lt;?php
$domain = $_SERVER["HTTP_HOST"];

if (($domain == "stackeurope.com" ||
    $domain == "stackereurope-uk.com") &amp;&amp; !$_GET['redirected'])  { 
    header("location: http://stackereurope-uk.com/contact/index.php"); 
}
?&gt;
</code></pre>

<p>I tried this code but that doesn't work.</p>

<p>What is the easiest way to accomplish what I want to do?</p>
