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.
If you are being redirected, the question is, does magento anything or is it the apache.
- check whether the index.php is called (just put a die in it and check whether the redirect still occurs)
- check your
.htaccessfor any unwanted redirects
- Check your VHost settings
- check your
app/etc/local.xmlwhat the admin path is in the node
- check for a admin url in
local.xmlfor the nodes
admin/url/use_custom(has to be 1) and
admin/url/customfor the url
Use 127.0.0.1 instead of localhost.
Also you can make virtual host entry in your host file. you can find that file at
Open this file in notepad.
Make a new entry
Now instead of 127.0.0.1 use localhost.com (or any other name that you specify)