Shami's Blog

DevOps because uptime is not optional

Moving A Magento Instance To A New Domain

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

1update core_config_data set value='https://NEW_DOMAIN/' where path='web/secure/base_url';
2update 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.

Categories