Magento – WAMP Admin login does not work, redirected to frontend

adminbackend

I recently copied over my live site along with database to my WAMP folder and now every time I try to get to the Backend, it redirects me to the homepage. I'm curious if there is something in the database that I have to change. I had to rewrite the core_config_data /base_url in order to get it to stop redirecting to the live site when I typed Localhost and I'm curious if it's an entry in my database that is causing it to reroute to the local Frontend. I've tried localhost/admin localhost/index.php/admin and others. Let me know if any code would help answer the question.

Best Answer

If you are being redirected, the question is, does magento anything or is it the apache.

Apache

  1. check whether the index.php is called (just put a die in it and check whether the redirect still occurs)
  2. check your .htaccess for any unwanted redirects
  3. Check your VHost settings

Magento

  1. check your app/etc/local.xml what the admin path is in the node admin/routers/adminhtml/args/frontName
  2. check for a admin url in core_config_data or the local.xml for the nodes admin/url/use_custom (has to be 1) and admin/url/custom for the url
Related Topic