Redirect on specif page on 404 error

Create one front controller or take it from your current module.
I have indexcontroller from my module.add below code on it.

public function sitemapredirectAction(){
        $configValue = Mage::getStoreConfig(
$location = Mage::getUrl($configValue );
       header("HTTP/1.1 301 Moved Permanently"); 
         //Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl($configValue ));

and then set up from backend.

Configuration - System - Magento Admin 2014-11-12 11-44-40


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s