Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php redirect

function Redirect($url, $permanent = false)
{
    header('Location: ' . $url, true, $permanent ? 301 : 302);

    exit();
}

Redirect('http://example.com/', false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #redirect
ADD COMMENT
Topic
Name
1+2 =