Is it best practice to use header("Location: thanks.html, false") for redirection in PHP?
It is not best practice to use header("Location: thanks.html, false") for redirection in PHP. The correct way to redirect using the header function is to set the second parameter to true, indicating that the redirection is permanent. This ensures that search engines and browsers cache the redirection properly.
header("Location: thanks.html", true, 301);
exit();