简体   繁体   English

为什么在Magento中的子目录存储中出现“未找到”错误?

[英]Why am I getting a 'not found' error for a subdirectory store in Magento?

I am running Magento CE 1.7.0.2 and am trying to set up a second store using the 'subdirectory method' described here: http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/ 我正在运行Magento CE 1.7.0.2,并尝试使用此处描述的“子目录方法”来建立第二家商店: http ://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/

When I try to navigate to my new storefront it gives me this error: 当我尝试导航到新店面时,出现以下错误:

"[my root directory]/[my new store's subdirectory]/app/Mage.php was not found" “未找到[我的根目录] / [我的新商店的子目录] /app/Mage.php”

Everything else in the backend of Magento seems to be setup fine - can anybody help? Magento后端中的其他所有内容似乎都设置正确-有人可以帮忙吗?

Thanks 谢谢

After you copy the index.php to the sub directory, you would need to change the index.php in the subdirectory to point it to the app/Mage.php. 将index.php复制到子目录后,需要更改子目录中的index.php以将其指向app / Mage.php。

Find the following in the subdirectory index.php 在子目录index.php中找到以下内容

$mageFilename = 'app/Mage.php';

and replace it with 并替换为

$mageFilename = '../app/Mage.php';

For completeness you should do the same thing for the $compilerConfig variable 为了完整起见,您应该对$ compilerConfig变量执行相同的操作

$compilerConfig = '../includes/config.php';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM