When error 404 in header, and redirect to a specific page?

Asked

Viewed 78 times

0

I have this page with link OFF: https://uploadbr.com/1j1w

But it’s no use me doing it with .htaccess, because I’ve tried and it won’t, I want to do with php.

I tried something like this:

if($httpCode == 404) {
    /* REDIRECT AQUI */
}

But it didn’t work, how do I do it ?

  • This site is yours, or you get information from it and want to check if it is off?

1 answer

1


You tried it this way in . htaccess?

Errordocument 404 /page-a-show.php

If it doesn’t work, this way you’re trying to do with if would be so: https://pastebin.com/QLVTG4EP

Browser other questions tagged

You are not signed in. Login or sign up in order to post.