将magento站点从子目录移动到根目录时无法打开流

时间:2014-04-27 14:47:21

标签: php .htaccess magento-1.8

我刚刚完成了将一个Magento的urba实例从/ urba dir移动到根目录的过程,但它仍然在/ urba目录中查找文件。

我更新了web / unsecure / base_url和web / secure / base_url值,清除/ var / cache和/ var / session双重检查.htaccess RewriteBase,将我的所有文件夹和文件更新到根文件夹

当我按保存配置时,magento的管理面板也会从链接

中消失

现在我正在打开我的网站链接

http://urbanunity.co.uk/

它会自动将我重定向到

http://urbanunity.co.uk/downloader/

有以下错误

Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/content/07/12442607/html/Urba/app/Mage.php on line 50

Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='/home/content/07/12442607/html/Urba/app/code/local:/home/content/07/12442607/html/Urba/app/code/community:/home/content/07/12442607/html/Urba/app/code/core:/home/content/07/12442607/html/Urba/lib:.:/usr/local/php5_4/lib/php') in /home/content/07/12442607/html/Urba/app/Mage.php on line 50

Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/content/07/12442607/html/Urba/app/Mage.php on line 51

Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/content/07/12442607/html/Urba/app/code/local:/home/content/07/12442607/html/Urba/app/code/community:/home/content/07/12442607/html/Urba/app/code/core:/home/content/07/12442607/html/Urba/lib:.:/usr/local/php5_4/lib/php') in /home/content/07/12442607/html/Urba/app/Mage.php on line 51

Fatal error: Class 'Varien_Autoload' not found in /home/content/07/12442607/html/Urba/app/Mage.php on line 54

我在index.php文件中做了更改

$mageFilename = 'app/Mage.php';

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

使用magento版本1.8.1.0

1 个答案:

答案 0 :(得分:0)

您是否检查过Magento文档移动Magento文件夹?

Magento Doc - Move Magento to Another Directory