What Magento files could be responsible for redirecting to a previous domain

I'm trying to clone a server. I have my Magento in a subfolder. For the sake of simplicity....


Cloned to create...


My managed hosting company (Cloudways) does most of the heavy lifting, but despite following the steps below, I can't figure out why...

www.domain2.com/store Redirects to www.domain1.com/store

I've updated the DNS (even IPaddress/store redirects to domain1.com/store) Made changes to the .htaccess, robots.txt, etc. I've updated the core_config_data table with the new base URLs (www.domain2.com/store). I've cleared the cache and even restarted the server.

I have also done a search for 'domain1.com/store' in all the files and in the database, and the only place I find it is in the following tables.... - catalogsearch_query - core_email_queue - core_session - smtppro_email_log

Which I can't understand why those tables would affect a redirect. Can anyone confirm this? Can anyone suggest some methods or tools to get to the bottom of this.

This is my eighth attempt over three weeks. When I ask my host for help they go ahead and just do the search and replace and I can't replicate their results. It takes them a day to respond and now they are ignoring me. Therefore it's imperative I learn how to do this myself. Please point me in the right direction.


I finally got this resolved thanks to 'adiltaj' on fiverr.

The local.xml file in the app/etc had memcached information between two tags that had to be commented out. That solved the problem.

Another user (Fabian Schmengler) also gives this as a possible solution (bullet 1) to a similar question here.

Similar questions

migration- except home page all pages redirecting to old domain
we are migrating from one domain to another domain. usually we will foloow the procedure of "open the database file in notepadd++ software and find and replace old-doamin-name to new-domain-name. but as the database file size is 1000mb, we can not able to do in notepad++ we change the base urls in core_config_data table. but now only home page is w...
Website is not redirecting to respective domain name
When the site (only database not the full theme) is migrated to hosting environment(Nexcess) and even after changing the base urls in the core_config_data the site is not available. It is displaying error like The page isn’t working. Note: when I give some other domain name in the core_config_data it is finely redirecting with respect to the provid...
Redirecting old sub-domain store url to new store search
I have a 2nd store which I'm closing and consolidating to my existing store. Instead of simply redirecting old links to a base directory I'd like to leave the customer looking at a search page result that best fits what they were trying to see on the store I'm closing. For example, my current "old" store hosted on a separate subdomain looks like th...
Apache Virtualhost redirecting to first domain
I have apache virtualhost configured properly. Meaning when i go to www.myfirstsite.com it loads the welcome page i created for it, similarly when i go to www.mysecondsite.com it loads second welcome page. This tells me everything is working properly. The issue i have is when i transfer my magento site to www.mysecondsite.com it redirects to www.my...
Subdomain onestep checkout is redirecting to main domain cart page
Only in mobile, when I click on sub domain onestep checkout page, it gets redirected to main domain cart page. And its working fine in desktop version, facing issue only in mobile.
Redirecting non mobile visitors to domain.com/home
I have an magento shop running (www.domain) for what i also created an speed door (Accesible through: www.domain.com/home). Now i also installed a mobile theme. the mobile theme is not on a subdomain, but due the design option in Magento, Magento recognizes mobile users en direct them to the mobile site (also just www.domain.com). Now what i want t...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.