2

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...

Fabian Schmengler
66.2k25 gold badges191 silver badges422 bronze badges
asked Jul 2, 2015 at 12:33

2 Answers 2

3

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
answered Jul 2, 2015 at 12:42
5
  • All done, but about the .htaccess, can you explain a bit more about this? I can post the contents of the file if needed. Commented Jul 2, 2015 at 12:48
  • In short: if you find the old base url somewhere in the .htaccess file, you need to change it. But you can post the file if you are unsure Commented Jul 2, 2015 at 12:50
  • It's to big to post here, but you can download it here link. Just change .zip to .txt. The url location I want to move to is www.popularmagazines.co.uk/oud/ Commented Jul 2, 2015 at 12:57
  • The file is fine, nothing to do there. Commented Jul 2, 2015 at 12:59
  • Must be some local server config then.... Thank you anyway Commented Jul 2, 2015 at 13:17
1

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.

answered Jul 3, 2015 at 11:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.