【发布时间】:2013-10-22 22:03:48
【问题描述】:
我已将 Multistore 移动到另一个具有以下结构的网络服务器:
mystore.com --> Magento Multistore installation
flowers.website.com --> symlinks to mystore.com folder
cars.website.com --> symlinks to mystore.com folder
新设置完全一样(只是域和文件夹名称不同)。
但是,如果我转到新网址 mynewstore.com,我将始终重定向到旧域。
我已经做过/尝试过的事情:
- 更改了 core_config_data 中的 base_urls
- 已清除 var + 777 权限
- 已清除会话表
- 重新索引
- 检查 htaccess 的重定向
- 检查 index.php
- 检查不同商店的重定向模板
我的 index.php 的重要部分:
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
$mageRunCode = 'mystore';
$mageRunType = 'website';
Mage::run($mageRunCode, $mageRunType);
如果我要将 $mageRunCode 更改为另一个商店 ID(如“flowers”),则会加载旧的 (!!) 花店(重定向到旧的花 url)。
我想不看代码很难解决问题,但我没有其他想法可以在这里尝试。我真的很感激任何提示。
【问题讨论】:
-
嗨汉内斯。你在运行什么网络服务器?有比编辑 index.php 更好的方法。你有 MySQL 服务器的访问权限吗?
标签: magento