Magento管理员404 [英] Magento Admin 404
问题描述
我们最近将多域magento设置从共享主机迁移到专用服务器.
We recently migrated our Multi-domain magento setup from a shared host to a dedicated server.
一切正常,但是当我尝试进入管理部分时,登录后出现任何错误404.
All is working fine fronted, but when I try to go to the admin section I get a 404 error on anything after login.
如果我从网址中删除index.php似乎可行,但是,一旦我点击管理部分中的另一个链接,404再次使用index.php并返回了网址.
It seems to work if I remove index.php from the url but then as soon as I click on another link in the admin section it 404's again with the index.php back in the URL.
推荐答案
-您需要直接进入服务器并通过SSH/FTP进行操作
-- You need to go your server directly and do this via SSH/ FTP
您必须删除以下文件
app/etc/use_cache.ser
如果之后出现类似错误
注意:未定义索引:0英寸 /srv/www/vhosts/javra.com/htdocs/munchad2/app/code/core/Mage/Core/Model/Mysql4/Config.php 在第92行
Notice: Undefined index: 0 in /srv/www/vhosts/javra.com/htdocs/munchad2/app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92
然后转到您的数据库管理.
Then go to your Database Management.
- 打开PhpMyAdmin
- 转到您的数据库
- 单击SQL
- 运行以下SQL查询:
_
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;
当您将数据库从一台服务器移到另一台服务器时,缓存会发生一些奇怪的事情,因此您似乎需要清除它.
Some thing strange happens with the cache when you move the databases from one server to another so it seems like you need to clear it out.
这篇关于Magento管理员404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!