I have this page with link OFF: link
But I do not have to do this with .htaccess
, because I tried and it will not, I want to do with php
.
I tried something like this:
if($httpCode == 404) {
/* REDIRECT AQUI */
}
But it did not work, how do I do this?