cancel
Showing results for 
Search instead for 
Did you mean: 

Moving from Ip address to Domain Name

SOLVED

Moving from Ip address to Domain Name

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Moving from Ip address to Domain Name

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

 

 

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.

View solution in original post

2 REPLIES 2

Re: Moving from Ip address to Domain Name

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

 

 

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.

Re: Moving from Ip address to Domain Name

This really helped. I was looking for how to do it?

Great! Cheers