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.
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.
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.
But after that I've got the same error: 404 page not found. I've tried this and this. But still the same.
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).
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
Best Answer
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...
and you're DONE!
go to your previous admin url and it should work!