Magento redirect url

_redirect()

This function is used for between Magento modules.
[php]
<?php $this->_redirect(‘module/controller/action’);
example:- $this->_redirect(‘customer/account/create’);
?>
[/php]

We can redirect within our current controller by specifying ‘*’.
[php]
<?php $this->_redirect(‘*/*/add’); ?>
[/php]
Note:- first * is used for module and second * is used for controller.

_redirectUrl()

This function is used for external URL or outside Magento base.
[php]
<?php $this->_redirectUrl(‘http://google.com’); ?>
[/php]