Shami's Blog

Sysadmin, Because Even Developers Need Heroes

Moving A Magento Instance To A New Domain

2016-04-21 by Mohammad H. Al-Shami

Quick one here, when you move a Magento instance to a new domain or URL it will keep redirecting to the old address. There is a quick fix

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

Just make sure you include a slash at the end of the new domain name

About Me

Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.