//get the required url
$url = Mage::getUrl('checkout/cart');//eg to redirect to cart page
//get the http response object
$response = Mage::app()->getFrontController()->getResponse();
//set the redirect header to the response object
//send the response immediately and exit since there is nothing more to do with the current execution 🙂
Thank you for reading.
Hope this was helpful to you.