How to redirect product page after logout in Magento?

It is very simple. Please goto logout.phtml file. If absent in your theme please copy from base and paste in your theme.

<div>
<h1><?php echo Mage::helper(‘customer’)->__(‘You are now logged out’) ?></h1>
</div>
<p><?php echo Mage::helper(‘customer’)->__(‘You have logged out and will be redirected to our homepage in 5 seconds.’) ?></p>
<script type=”text/javascript”>
//<![CDATA[
setTimeout(function(){ location.href = ‘<?php echo $this->getUrl() ?>’},5000);
//]]>
</script>

Replace with

<div>
<h1><?php echo Mage::helper(‘customer’)->__(‘You are now logged out’) ?></h1>
</div>
<p><?php echo Mage::helper(‘customer’)->__(‘You have logged out and will be redirected to our homepage in 5 seconds.’) ?></p>
<script type=”text/javascript”>
//<![CDATA[
setTimeout(function(){ location.href = ‘<?php echo$_SERVER[‘HTTP_REFERER’]; ?>’},5000);
//]]>
</script>

Hope it will work.