<?php
header("Location: (redirect url)");
?>
header("Location: http://example.com");
die();
RewriteCond %{REQUEST_URI} /index.php
RewriteRule ^(.*)$ http://site.ru/ [R=301,L]
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
<?php header ("location: http://domain.com/"); ?>
function Redirect($url, $permanent = false)
{
header('Location: ' . $url, true, $permanent ? 301 : 302);
exit();
}
Redirect('http://example.com/', false);
//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();
<% String redirectURL = "http://domain.com/";
response.sendRedirect(redirectURL); %>