Magento-将实时站点复制到开发服务器,但是将其重定向到实时站点吗? [英] Magento - Duplicated live site to a development server but it redirects to live site?

查看:92
本文介绍了Magento-将实时站点复制到开发服务器,但是将其重定向到实时站点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望您能帮助您深入浅出.这是怎么回事:

I hope you can help get to the bottom of this. This is whats happened:

  • 我们将实时的Magento网站(例如,我们将其称为domain1.com)复制到了开发服务器(在本示例中,我将其称为domain2.com)
  • 在数据库和文件中都没有将domain1.com查找/替换为domain2.com
  • 删除了所有var/cache和var/session文件
  • 通过SSH重新索引所有索引
  • 清空的浏览器缓存
  • 检查了所有文件权限
  • 在导致重定向的情况下禁用.htaccess

但是它仍在重定向到实时服务器(domain1.com)?

But it's still redirecting to the live server (domain1.com)??

有什么想法可能会触发这种情况吗?

Any ideas what may be triggering this?

干杯

戴夫

推荐答案

解决了该问题……希望这对其他人有所帮助.

Solved the issue...hopefully this helps some other people.

网站被复制后,我们使用新的详细信息编辑了"local.xml"文件,但保留了旧的文件并将其重命名为"localnew.xml"

When the site was duplicated we edited the "local.xml" file with the new details but kept the old one and renamed it "localnew.xml"

Magento似乎仍在获取这些详细信息,因此正被重定向到旧站点.

It seems Magento was still picking up these details as so was redirecting to the old site.

删除"localnew.xml"(或您所说的任何名称,例如localxxx.xml)可以解决我们所有的问题!

这篇关于Magento-将实时站点复制到开发服务器,但是将其重定向到实时站点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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