Question

I want to move my store to a different location on the current server and keep it accessible for myself only. I will launch a new store at the same time.

The problem I have is that I cannot seem to access the store after creating a clone/duplicate (with new database), because it always redirects to the live store. (I don't want to take the live store down before I get the it to work as described above).

After duplicating the store to domains/www.mydomain.com/newlocation/ I have changed the domain in DB core_config_data and cleared all cache and sessions in \var. Still it keeps redirecting. Would make sense if the .htaccess would have something to do with it, but even after completely making it empty it still redirects. I'm out of ideas...

Was it helpful?

Solution

What to do after duplicating a Magento instance:

  • change the database credentials in app/etc/local.xml
  • change the base urls in the core_config_data table
  • clear Magento cache
  • clear browser cache in case it has already cached a redirect
  • change .htaccess (or vhost server configuration) if it contains additional redirects or store selection based on the URL

OTHER TIPS

Finally did it. You have to do all the steps like described above, but I in core_config_data also set "web/url/redirect_to_base" to 0. This did the job.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top