GENWiki

Premier IT Outsourcing and Support Services within the UK

User Tools

Site Tools


joomla:redirect_to_a_different_page_component_article_etc
function Redirect($url, $permanent = false)
{
    if (headers_sent() === false)
    {
    	header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
    } else {
    	 echo "<script>location.href='".$url."';</script>";
    }
    exit();
}

Simply redirect to a Joomla URL such as

index.php?option=com_content&task=view&id=123

/data/webs/external/dokuwiki/data/pages/joomla/redirect_to_a_different_page_component_article_etc.txt · Last modified: 2019/05/20 10:13 by genadmin

Was this page helpful?-12+1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki