Magento管理员登录被重定向

时间:2011-09-21 07:35:37

标签: php magento

使用magento,我将网站转移到新服务器但是当我尝试登录管理员时,它会继续重定向回旧域。我似乎无法让这个工作。

我有没有可以解决这个问题的地方?

5 个答案:

答案 0 :(得分:8)

1)更新核心配置数据表中的基本URL和安全基本URL

2)截断core_session表

3)运行此查询:

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;

4)清除/ var / cache / *和/ var / session / *

5)清除浏览器缓存/ cookie

确保magento root中的整个var目录被chmodded为777!

答案 1 :(得分:1)

您必须从core_config_data表

更改基本网址和安全基本网址

答案 2 :(得分:1)

如果您有多个商店设置,请确保更改默认配置和商店视图的基本网址。

另外,请确保基本网址以/

结尾

http://websitename.com/

http://websitename.com

答案 3 :(得分:0)

============第1步=======================

In phpmyadmin find core_config_data and on its last page deleted the entire fields not just the data in them:
admin/url/use_custom
admin/url/custom
web/secure/base_url
web/unsecure/base_url

==========第2步=========================

In /public_html/var/cache/ delete all the files:
mage--1 through mage--f 

答案 4 :(得分:0)

我通常会执行以下步骤:

1)更新对您的旧域的所有引用您的core_config_data数据库表

2)删除缓存文件/ magento_root / var / cache

3)清除浏览器cookie

相关问题