This is fairly simple but I cant work it out.
I'm building a wordpress site, and I want a redirect on my 404 page using PHP instead of javascript.
<?php header("Location: www.myblogurl.com"); ?>
And I use this in my wordrpess websites to get the URL of my blog...
<?php bloginfo('url'); ?>
But I can't seem to merge the two PHP scripts together, please see my poor attempt below.
<?php
$location = bloginfo('url');
header( 'Location:' + $location ) ;
?>
This seems to echo my website URL instead of redirecting.
Can any help me please, thanks.
.is the concatenate operator in PHP not+