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?
Solved! Go to Solution.
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 ?
No, i need to change the domain name on the existing magento2 server installation from the .com to the .co.uk.
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.
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?
yes, Correct you think. You can set this way your old domain with new one domain.
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