Redirecting based on condition
<p>I do have the following code:</p>

<pre><code>&lt;?php 
if($_SERVER['REQUEST_URI'] == 'http://example.com/knowthecode')
{
    header("Location: http://example.org/knowthecode"); exit;
}
</code></pre>

<p>This is NOT working as expected. Can you help ?</p>
