Fri 12 Dec 2008
Magento – Manually change base url
Posted by admin under Magento , magento customization[8] Comments
I had to change the directory name of me magento installation for some reason. After that, the site did not load well (as it was expected). I now i had to change the base url in the admin section (configuration settings).
I had to manually change the urls in the browser every time i browse from page to page, but when i finnaly got to the right one, the buttons did not work.
So i had to do it in another way. I went to my phpadmin page in order to access the database. I manually edited the “web/unsecure/base_url” and “web/secure/base_url” fields in the “core_config_data” table.
I refreshed my page but still no luck. Perhaps it was the cach. But how could i change it?
Manually again!
I went to my ftp client and accessed the var/cache/ directory. I deleted everything inside there and voila!
April 12th, 2009 at 2:49 pm
Thank you VERY MUCH
May 15th, 2009 at 2:08 am
Thank you! Worked perfectly!
We switched from http to https and 3 different domains pointing to the same Magento install with Apache rewrite rules and got into trouble with this, it all works now thanks to you!
May 29th, 2009 at 12:10 pm
Thanks – you saved my time
June 16th, 2009 at 5:35 am
It worked! Thanks a lot!
July 22nd, 2009 at 3:40 pm
thanks a lot
August 13th, 2009 at 3:53 pm
great, thanks!
you dont need to follow the final paragraph (clearing the cache) if you-re in a development env. and the cache is disabled.
January 3rd, 2010 at 10:10 am
Please note that you also need to update the path in /downloader/pearlib/pear.ini to get Magento Connect to work after updating the base url.
I did the following to solve this problem:
1) Take a backup of the file /downloader/pearlib/pear.ini
2) Delete (or rename) pear.ini
3) Go to Magento connect manager – the settings are resteted back to “stable”, change it to beta and press save. A new pear.ini file should now be created with the correct path.
4) Done
January 21st, 2010 at 3:01 pm
it worked perfectly, thanks a lot!