I'm making my development backup of the live Magento website, so far I did the following:
- created mywebsite.local virtual host
- copied all files from live server to local machine
- imported dump database
- changed the etc/local.xml database parameters
- replaced all rows in core_config_data containing mywebsite.com into mywebsite.local
- deleted all contents under VAR
The thing is - when I go to mywebsite.local it redirects me to mywebsite.com. This happens in the index.php file, exactly on the Mage::run line. I tried turning off all htaccess rewrite rules, it doesn't help so that's not the problem.
What am I missing?
run()
it should only be trying to redirect you if it thinks you have an invalid session or if it thinks it isn't installed. In app/Mage.php take a look at the run() function and maybe comment out theheader()
calls and put something to print the Exception messages. Might help uncover what's going on. – jprofittweb/cookie/cookie_domain
path(s) in tablecore_config_data
accordingly? – Jürgen Thelen