/** * Implement logic of custom rewrites * * @return bool */ public function rewrite() { if (!Mage::isInstalled()) { return false; } if (!$this->_request->isStraight()) { Varien_Profiler::start('mage::dispatch::db_url_rewrite'); $this->_rewriteDb(); Varien_Profiler::stop('mage::dispatch::db_url_rewrite'); } Varien_Profiler::start('mage::dispatch::config_url_rewrite'); $this->_rewriteConfig(); Varien_Profiler::stop('mage::dispatch::config_url_rewrite'); return true; }