I know this is common problem, I tried many solutions but things did not work. I tried changing the url for admin from dashboard. Now dashboard redirects me to store home page. I tried deleting cache files and session files. Also set admin/url/use_custom to 0, admin/url/use_custom_path to 0 in database. The login page opens as bare html with no css or js files working. when i login it redirects me to store homepage. Any help would be great! thanks.

Update: Also tried changing the local.xml. Now the /index.php/admin gives 404 error and the new admin name "backend" (/index.php/backend) redirects to homepage.

  • Are you doing anything out of the ordinary like running Magento from a subdirectory? – Jonathan Hussey Nov 3 '14 at 18:03
  • @JonathanHussey I am running magento in a shared hosting and it has public_html as root. – codename_subho Nov 3 '14 at 18:09

Take a look at Magento - Wiki - Set up Magento backend on a separate node

Edit “app/etc/local.xml” and change


This will change the name of the path entity used to get access to the admin panel.

  • tried it and updated my question. – codename_subho Nov 3 '14 at 18:12
  • what values do you have in the db for admin/url/use_custom and admin/url/use_custom_path?. Also what version of magento? – Renon Stewart Nov 3 '14 at 18:40
  • I have 0 for both – codename_subho Nov 3 '14 at 19:15
  • Trying using a different browser (/delete browser cache) – Renon Stewart Nov 3 '14 at 19:18
  • I did that. As i mentioned in my question. Login page appears as plain html without any css effect. And on logging in am redirected to store homepage . – codename_subho Nov 3 '14 at 19:22

Resolved it. Had to change the

web/secure/base_url       http://domainname.com/
web/unsecure/base_url     http://domainname.com/

in database.

  • 1
    both secure and unsecure http? – bart2puck Jun 26 '15 at 17:23
  • @bart2puck , i was working on a dev server where we did not serve via https. For proper functioning secure should be https://domain.com – codename_subho Jul 2 '15 at 16:26
  • So WHAT Was the values before you changed these 2 urls?? Always be specific ! – Pratik Sep 7 '15 at 10:28
  • @PratikCJoshi, i understand it would have been helpful to many people if i could provide more data, but its been around 11 months and i dont remember much of it. Will make it a point to provide as much data as possible next time. – codename_subho Sep 12 '15 at 22:22
  • @codename_subho , see your Question and answer already has 1600+ views. 1600+ people came here and returned with no answer as you have written 1 line answer. Please consider editing your answer, because your 1 line answer is equal to no answer to the question or deleted Question/answer. – Pratik Sep 13 '15 at 8:18

Go to phpmyadmin search core_config_data drop or delete cofigration table


Validate HTTP_VIA



Cleare the Cache and Sir,please go to admin url. may be it help you or 100% @martvent developer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.