I have the following code for my 404 it is located in error.php within the template
if ($this->error->getCode() == '404') {
header('Location: /images/masters/404.gif');
exit;
}
I specifically have it looking at an image so it takes up the whole screen, as opposed to an article or the like.
My question is... how do I have this image become a hyperlink back to the homepage?
I tried the standard image links without success
if ($this->error->getCode() == '404') {
header('Location: <a href="/home"><img alt="404 error" src="/images/masters/404.gif" style="width: 1321px; height: 828px;" /></a>');
exit;
}
Any ideas how I can work the hyperlink into the code?