cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 domain name change

SOLVED

magento 2 domain name change

HI,

I currently have a working store on a .co.uk domain using another ecommerce solution.

I also have a new magento 2 sotre on a .com domain name.

What i wanted to do is use the magento 2 store, close the other ecommerce solution and now setup the .co.uk name on the existing .com server.

Hope that makes sense.

Is this straight forward?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: magento 2 domain name change

Yes thats correct !!

 

You only need to replace domain name from core_config_data table

 

if previously SSL is installed for .com domain , then it will directly work for co.uk as well.

 

so you don't need to install SSL again !! if you just want to replaced the domain

 

if issue solved,Click Kudos & Accept as Solution

View solution in original post

6 REPLIES 6

Re: magento 2 domain name change

Does it mean , you wanted to redirect ?  if some one type url as co.uk then its needs to be redirect on .com domain name. ?

 

or you completely want to change .com url to co.uk ?

if issue solved,Click Kudos & Accept as Solution

Re: magento 2 domain name change

No, i need to change the domain name on the existing magento2 server installation from the .com to the .co.uk.

Re: magento 2 domain name change

You need to change url value in your current magento 2 store from databases,

 

Go To core_config_data table and change respective value of below fields,

web/unsecure/base_url to https://storename.co.uk
and 
web/secure/base_url to https://storename.co.uk

where change storename to your actual store.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: magento 2 domain name change

I assume then just transfer domain name in to server, change those values and setup a new SSL as that would be for old .com?

Thanks

Re: magento 2 domain name change

yes, Correct you think. You can set this way your old domain with new one domain.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: magento 2 domain name change

Yes thats correct !!

 

You only need to replace domain name from core_config_data table

 

if previously SSL is installed for .com domain , then it will directly work for co.uk as well.

 

so you don't need to install SSL again !! if you just want to replaced the domain

 

if issue solved,Click Kudos & Accept as Solution