码
$compilerConfig = '/home/shop_production/htdocs/includes/config.php';
$mageFilename = '/home/shop_production/htdocs/app/Mage.php';
require '/home/shop_production/htdocs/app/Mage.php';
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ?
$_SERVER['MAGE_RUN_CODE'] : 'wholesale';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'website';
Mage::run('wholesale', 'website');
我在magento中创建了一个新的根类别并更改了Magento中的Base Url
我在CMS中创建了一个新家 - 页面
=>我的主页在mydomain.com/wholesale/
上显示正确的页面和设计但是一旦我点击任何链接,它就会给我以下错误:
Front controller reached 100 router match iterations Trace:
#0 /home/shop_production/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(179): Mage::throwException('Front controlle...')
#1 /home/shop_production/htdocs/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#2 /home/shop_production/htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#3 /home/shop_production/htdocs/index.php(83): Mage::run('en_kigu', 'store')
#4 {main}
看起来它使用了错误的index.php,因此错误的“Mage :: run”命令?
我还能做什么?