I changed the baseurl system->configuration->web from mysite.com to mysite.com/mysite trying to fix an error. Problem is now i can't get into the backend to change it back. Does someone know a fix for this without backend access?

  • Magento question as old as time, you edit or send an update query to the database - for 1.x, added information that might be applicable - magento.stackexchange.com/questions/35087/… Jul 25, 2016 at 16:16
  • you are completely right. I had gone through all the forums and did the trial and error approach but it was just not working out. Magento has so many variables. But anyway I was able to get it working...Finally! For anyone else that might have a similar issue, clear cache, look at the answer from Aman Alam. That's what worked for me. Thanks for the help! Jul 25, 2016 at 17:15

1 Answer 1


You are directly able to update it from database by below mentioned query replace http://domainname/ with you base url.

update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';
update core_config_data set value = 'http://domainname/' where path = 'web/secure/base_url';

Hope it will help.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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