Magento:从现场转移到本地 [英] Magento: Transfer from live to local

查看:113
本文介绍了Magento:从现场转移到本地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对实时Magento网站进行开发备份,到目前为止,我已经执行了以下操作:

I'm making my development backup of the live Magento website, so far I did the following:

  • 创建了mywebsite.local虚拟主机
  • 将所有文件从实时服务器复制到本地计算机
  • 导入的转储数据库
  • 更改了etc/local.xml数据库参数
  • 将core_config_data中包含mywebsite.com的所有行替换为mywebsite.local
  • 删除了VAR下的所有内容

问题是-当我转到mywebsite.local时,它会将我重定向到mywebsite.com.这发生在index.php文件中,恰好在Mage :: run行上.我尝试关闭所有htaccess重写规则,但没有帮助,所以这不是问题.

The thing is - when I go to mywebsite.local it redirects me to mywebsite.com. This happens in the index.php file, exactly on the Mage::run line. I tried turning off all htaccess rewrite rules, it doesn't help so that's not the problem.

我想念什么?

推荐答案

Magento缓存也需要刷新,可以使用以下脚本完成

The Magento cache also needs to be flushed, it can be done using the following script

 require_once 'app/Mage.php';
 $app = Mage::app();

  echo "<pre>";
  if($app != null) {
       echo "The app was initialized.\n";
       $cache = $app->getCache();
       if($cache != null) {
               echo "The cache is not empty. Clean it.\n";
               $cache->clean();
        }  
   } 

这篇关于Magento:从现场转移到本地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆