PHP: effettuare un redirect HTTP 302

In PHP è semplice effettuare un redirect HTTP 302.

Possiamo scrivere il seguente codice PHP:


header('HTTP/1.1 302 Found');
header('Location: https://site.tld/page/');
exit();

Torna su