Whats wrong with this header code?
<pre><code>$return_url = $_SERVER['REQUEST_URI'];
header("Location: /logout?msg=You must login to view that page&amp;c=2&amp;path=$return_url");
</code></pre>

<p>For some reason its taking me  to <code>http://my.domain/login?msg=You%20must%20login%20to%20view%20that%20page&amp;c=2</code></p>

<p>when it should take me to </p>

<p>to <code>http://my.domain/login?msg=You%20must%20login%20to%20view%20that%20page&amp;c=2&amp;path=/blogs/write</code></p>

<p>if i echo <code>$return_url</code>  it returns the right path...</p>

<p>So i'm not sure whats up. Help?</p>
