Changing Url In Multi Vendor

Hello,

I have CS-Cart Multi Vendor installed on my hosting account.

I need to change the URL from www.aaa.com to www.bbb.com of my store without changing the database or directory.

The steps are normally:

1-Point the new domain to shared Ip where cs-cart is installed

2-Modify the config file and replace old domain with new domain

This is not working, what am i missing?

Thanks

Go to config.local.php file

// Host and directory where software is installed on no-secure server
$config['http_host'] = 'domain.com';
$config['http_path'] = ''; // write if path exist

// Host and directory where software is installed on secure server
$config['https_host'] = 'domain.com';
$config['https_path'] = ''; // write if path exist

clear your cache & check

Try to delete the var/cache directory manually

[attachment=12139:screen2.JPG][attachment=12140:screenshot.JPG]

screen2.JPG

screenshot.JPG

Thank you for your replies:

I changed the config file

I cleared the cache manually

I did NOT work, the new test domain name is lebko.com. What is weird is, If I enter old domain, it goes to new domain I have added.

Do I have to add the domain in CPANEL, or delete old domain in CPANEL?

Appreciate your help.

Thanks

Can you access admin? If so, you need to change the url in the company info. If not, you will need to edit the url in the companies table in the database.

Something like this:

UPDATE `cscart_companies` SET `url` = 'www.your_domain.com',
`storefront` = 'www.your_domain.com',
`secure_storefront` = 'www.your_domain.com' WHERE `cscart_companies`.`company_id` =1;

Thank You "The Tool"

No I cant access the admin, so what I did is changed back the config to old domain to access and changed the domain in the company info, which is now on the upper left of admin and its still not working.

Could it be the license with cs-cart? because they changed the license in domain but I dint not try so that my site doesnt go down.

I am trying to change it with a temporary domain I pointed to the installation.

Does it have to do with Cpanel where I should add the domain?

It's not the license because you would still be able to access the site, you just wouldn't have full mode.

You need to explain in more detail now that you brought up adding the domain to cPanel. Did you just obtain the domain?

Take a look at this DNS report and let us know if the information is correct. https://intodns.com/lebko.com
If it is, then yes cPanel needs to know the domain and the IP assigned to it.

Hi,

Here is the explanation:

The hosting account primary domain is www.yabli.com, so in CPANEL initial configuration, there is no need to add a domain.

My thoughts are: now that I am changing the domain lebko.com of my cs-cart installation, although it is pointed correctly to the hosting server, maybe I should add it to the list of domains in my hosting account as addon domain or something else.

The domain and hosting are TWO different providers.

Also, as I learned, I should not change the primary domain of the hosting, it could mess up.

Hope this is clear.

Thanks

If I understand you correctly, what I would do is use WHM and create another cPanel account for your new domain and then copy your files and database to that account.

Take a look at this DNS report and let us know if the information is correct. https://intodns.com/lebko.com
If it is, then yes cPanel needs to know the domain and the IP assigned to it.

Hi Yes,

The report indicates that the A record is pointed to the correct server IP.

As you said, Cpanel doesn't know anything related to lebko.com, so its probably that I have to add somewhere, I dont know where exactly. Usually, when i want to add more domains to my hosting account, I add them as addon domain, and then install a specific application on selected domain.

Important: I just checked my other cs-cart Ultimate and realized that the domains I use for multiple store appear in addon domain /public_html.

I could add lebko.com as addon domain, but afraid it will mess up everything.

Do you think this is the issue?

Thanks a Million

Okay, you threw me off saying that the old domain was your hostname but looking at the DNS report again, it looks like you're on a shared account and your old domain is the cPanel account. If that is the case then yes, your only option is to add the new domain as an addon domain. After you do this then you will need to copy the files to the new domain directory.

Okay, you threw me off saying that the old domain was your hostname but looking at the DNS report again, it looks like you're on a shared account and your old domain is the cPanel account. If that is the case then yes, your only option is to add the new domain as an addon domain. After you do this then you will need to copy the files to the new domain directory.

Ok, that is complicated for me.

I am currently importing/Exporting products and categories to cs-cart MV.

Once I finish adding all products, I will need to migrate over night from one url to another, do you do such work?

Thanks

I can but it's really not that difficult. Add the domain via addon domain in cPanel and it will create the directory for you. Then just copy the files from old domain directory to new domain directory.