I am running Magento 1.9.2.3 on my Linux server with Cpanel and I can access my Store via a dedicated IP address (E.X 259.453.243.192), Now I wish to point my server DNS to my domain name (www.example.com) so that I can access the store via domain name.
My Question: Since nothing is changing at the server side, will Magento works perfectly after moving to the domain name? Or there are some changes I am required to do?
Solved! Go to Solution.
Hi @benjaminshafa,
You should update the Secure Base URL and the Unsecure Base URL to work on the new domain.
If your store has just one store view, you can run the following SQL query to update the Base URL:
Secure Base URL
update core_config_data set value = 'https://domain.dev/' where path LIKE 'web/secure/base_url';
Unsecure Base URL
update core_config_data set value = 'http://domain.dev/' where path LIKE 'web/unsecure/base_url';
If your store has multiple store views, then you can update the Base URL per store view (update the scope_id as needed):
Secure Base URL
update core_config_data set value = 'https://domain.dev/' where path = 'web/secure/base_url' and scope_id = '0';
Unsecure Base URL
update core_config_data set value = 'http://domain.dev/' where path = 'web/secure/base_url' and scope_id = '0';
Best regards.
Gabriel
Hi @benjaminshafa,
You should update the Secure Base URL and the Unsecure Base URL to work on the new domain.
If your store has just one store view, you can run the following SQL query to update the Base URL:
Secure Base URL
update core_config_data set value = 'https://domain.dev/' where path LIKE 'web/secure/base_url';
Unsecure Base URL
update core_config_data set value = 'http://domain.dev/' where path LIKE 'web/unsecure/base_url';
If your store has multiple store views, then you can update the Base URL per store view (update the scope_id as needed):
Secure Base URL
update core_config_data set value = 'https://domain.dev/' where path = 'web/secure/base_url' and scope_id = '0';
Unsecure Base URL
update core_config_data set value = 'http://domain.dev/' where path = 'web/secure/base_url' and scope_id = '0';
Best regards.
Gabriel
This really helped. I was looking for how to do it?
Great! Cheers