We are having the strangest Redirection problem on a Magento site. We copied the sites contents from another Magento site to a new URL. We have done this in the past with no problems but for some reason this one redirects to the old website as soon as you try to load the page, any page.
Below are all the steps I have done so far in my quest to Debug this pain...
www.Old-Domain.com = The Old site URL that we moved away from
www.NEW-Domain.com = The new site that we have copied Magento over to.
Steps done so far to try an resolve redirection issue:
- Searched whole MySQL database (All tables) for the string
www.Old-Domain.comand made sure there was none that could be causing the Redirection to happen.
- Updated Database Table
web/secure/base_urlto the new sites URL
- cleared any Cache files from
/var/cache/in the Magento Root
- Checked Server's cache folders to make sure files weren't being cached there due to permission or other error.
.htaccessfile to make sure it wasn't happening there
index.phpfile as well and printed out some content followed by an
exit()call and progressively moved it down the page until the point that the Redirection occurs. It is the very last line where this is called
Mage::run($mageRunCode, $mageRunType);once the page loads and gets to this line, I am immediately Redirected to our old website URL!