Magento - How to Manually Change Base URL / Domain?
So it turns out the problem was that Apache didn't have write permissions to the WEBROOT/var
directory, so Magento was using its cache from the system /tmp
directory. (thanks for the tip, Fiasco Labs!)
In case someone gets here from Google, I'll reiterate the steps...
How to Manually Change Domain in Magento
- Update your
core_config_data
table to edit the two records forweb/unsecure/base_url
andweb/secure/base_url
- Delete the contents of
WEBROOT/var/cache
- Update / edit any
.htaccess
domain redirects you may have added - Restart Apache
- Make sure Apache has write permissions to
WEBROOT/var
- If you created a new DB, ensure that the
WEBROOT/app/etc/local.xml
is pointing to it. - If you're using Chrome, clear your browser cache! (Chrome caches 301s)
That's about it. Cheers.
Try to use FLUSHALL
command on redis-cli
, maybe you have a cached database.
It worked for me.