How to make PHP header location redirect use PHP generated URL
<p>This is fairly simple but I cant work it out.</p>

<p>I'm building a wordpress site, and I want a redirect on my 404 page using PHP instead of javascript.</p>

<pre><code>&lt;?php header("Location: www.myblogurl.com"); ?&gt;
</code></pre>

<p>And I use this in my wordrpess websites to get the URL of my blog...</p>

<pre><code>&lt;?php bloginfo('url'); ?&gt;
</code></pre>

<p><br /></p>

<p>But I can't seem to merge the two PHP scripts together, please see my poor attempt below.</p>

<pre><code>&lt;?php

    $location = bloginfo('url');

    header( 'Location:' + $location ) ;

?&gt;
</code></pre>

<p>This seems to echo my website URL instead of redirecting.</p>

<p>Can any help me please, thanks.</p>
