title: Magento admin URL not working: 404 after changing it, can't go back
body: <p>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.</p>
  
  <p>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. </p>
  
  <p>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.</p>
  
  <p>But after that I've got the same error: 404 page not found. I've tried <a href="https://stackoverflow.com/questions/5178066/error-404-not-found-in-magento-admin-login-page">this</a> and <a href="https://stackoverflow.com/questions/5177362/how-to-change-the-base-url-in-magento-because-my-site-were-gone-after-im-changi">this</a>. But still the same.</p>
  
  <p>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).</p>
  
  <p>Why is magento redirecting me to "gestion" when I've removed everything related to that? Where else should I look to solve this?</p>
  
  <p>P.D. Magento 1.5.1</p>