[英]Magento admin login getting redirected
使用magento,我將網站轉移到新服務器,但當我嘗試登錄管理員時,它會繼續重定向回舊域。 我似乎無法讓這個工作。
有沒有可以解決這個問題的地方?
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!
您必須從core_config_data表更改基本URL和安全基本URL
============第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
我通常執行以下步驟:
1)更新對您的舊域的所有引用您的core_config_data數據庫表
2)刪除緩存文件/ magento_root / var / cache
3)清除瀏覽器cookie
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.