I'm doing some redirects using PHP, e.g.:
header('Location: '.$url);
But now I need to do some redirects with some other statuscodes.
Should I http1.0 or http1.1 for this. Or are we already at http2.0 or greater?
And are the status code the same for both?
So let's say I want to redirect using statuscode 404 (Not Found).
Can I just do:
header('HTTP/1.1 404 Not Found');
header('Location: '.$url);
Or is there a:
header('HTTP/2.0 404 Not Found');
header('Location: '.$url);