简体   繁体   中英

Changing the domain name for a store in Magento

I'm trying to change a domain name for one of for websites in a Magento multistore setup.

Each Store has it's own website, store, and view. We're replacing the old domain (domain1) with a new domain, and we're going to switch to a new domain (domain2).

I haven' been able to find information on changing a domain, except for the Magento article "Moving Magento to another server" http://www.magentocommerce.com/wiki/groups/227/moving_magento_to_another_server

I've updated all of the base_url values in the core_config_data table in MySQL, but when I access the store using domain2, Magento still redirects to domain1.

Has anyone had any success in changing the domain name for a Magento store, or is there a way I can simply add an alias to the store? Again, this is a multistore setup, and domain1 is not my default store, so I cannot simply add a ServerAlias to my Apache configuration. Is this something I could do by adding a store view?

I used to have such a problem when moving from the sub-dir into root. Turned out to be caching issue. If you are not able to get into administrator interface to clear your cache, just delete /var/cache directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM