Magento 管理 URL 不起作用:更改后 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 是gestion".转到 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 页面.我试过 this 和 这个.但还是一样.
But after that I've got the same error: 404 page not found. I've tried this and this. But still the same.
奇怪的是,我删除了数据库中与gestion"相关的所有内容,并清空了缓存目录.但是当我访问 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 会将我重定向到gestion"?我还应该在哪里解决这个问题?
Why is magento redirecting me to "gestion" when I've removed everything related to that? Where else should I look to solve this?
PDMagento 1.5.1
P.D. Magento 1.5.1
推荐答案
ANSWER:我遇到了同样的问题,以前的答案都不适合我.我使用的是 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"
- 范围:商店" 和路径:web/unsecure/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 管理 URL 不起作用:更改后 404,无法返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!