Magento管理员网址无效:更改后为404,无法返回 [英] Magento admin URL not working: 404 after changing it, can't go back
问题描述
我一直在研究所有主题,以找到与我的案子相似的内容.我发现了一些类似的案例,但是没有一种解决方案可以解决我的问题.
I've been looking through all the topics to find something similar to my case. I've found a few similar cases, but none of the solutions solved my problem.
我通过后端更改了管理URL.保存更改后,magento直接将我带到404错误.我为管理员url定义的新url是"gestation".前往mydomain.com/gestion,会显示404错误.
I changed through the backend the admin url. After saving changes, magento took me directly to a 404 error. The new url I defined for the admin url was "gestion". Going to mydomain.com/gestion, gets a 404 error.
因此,我决定回去删除在magento core_config_data表上创建的新条目,然后手动清空缓存目录.
So I decided to go back deleting the new entries that were created on the magento core_config_data table and then emptied manually the cache directory.
但是在那之后,我遇到了相同的错误:找不到404页.我已尝试此和
But after that I've got the same error: 404 page not found. I've tried this and this. But still the same.
奇怪的是,我已经删除了数据库中与"gestation"相关的所有内容,还清空了缓存目录.但是当我转到mydomain.com/admin时,magento将我重定向到mydomain.com/gestion(出现404错误).
The weird thing is that I've deleted everything related to "gestion" on the database and also emptied the cache directory. But when I go to mydomain.com/admin, magento redirects my to mydomain.com/gestion (with a 404 error).
当我删除与之相关的所有内容时,为什么magento会将我重定向到妊娠"?我应该在哪里寻找解决方案?
Why is magento redirecting me to "gestion" when I've removed everything related to that? Where else should I look to solve this?
P.D. Magento 1.5.1
P.D. Magento 1.5.1
推荐答案
答案: 我遇到了同样的问题,以前的答案都没有用.我正在使用Magento 1.9版.
ANSWER: I had the same issue and none of previous answers worked for me. I'm using Magento Version 1.9.
这就是我要解决的问题...
Here's what i did to fix the issue...
- 转到您的面板,然后启动 phpMyAdmin .
- 找到您的Magento数据库,然后选择 core_config_data 表.
- 找到并编辑以下行:
- 范围:默认" 和路径:"admin/url/custom"
- 选中 NULL 复选框并保存.
- 范围:默认" 和路径:"admin/url/custom"
- Go to your cpanel and launch phpMyAdmin.
- Locate your Magento Database and select the core_config_data table.
- Locate and edit the following rows:
- Scope:"Default" and Path:"admin/url/custom"
- Select the NULL checkbox and save.
- Scope:"Default" and Path:"admin/url/custom"
- 将值从 1 更改为 0 并保存.
- Change value from 1 to 0 and save.
- 将值从 1 更改为 0 (如果尚未保存).
- Change value from 1 to 0 if it isn't already and save.
- 范围:商店" 和路径:"web/secure/base_url"
- 范围:商店" 和路径:网络/不安全/基本网址" (应位于最后一页)
- Scope:"Stores" and Path:"web/secure/base_url"
- Scope:"Stores" and Path:"web/unsecure/base_url" (should be located on the last page)
您完成!
转到您以前的管理网址,它应该可以正常工作!
go to your previous admin url and it should work!
这篇关于Magento管理员网址无效:更改后为404,无法返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!