Magento – Live to local development – redirecting to live site

developmentlocalhostmagento-1.6

I'm new to Magento (using 1.6.1) and I'm getting very frustrated with it!

Whenever I type my virtual host url into the browser "http://website" it goes straight to the live site.

I've googled the problem over and over to no avail unfortunately.

I've tried:

  • changing the secure and unsecure paths in core_config to point to http://website
  • clearing out everything from var/cache
  • checking local.xml to make sure it was accessing the correct DB
  • checking .htaccess to make sure there wasn't a redirect in there.

I've looked at similar or the same questions on here and I can't seem to find my solution!

Please let me know if I have missed any key information out.

Any help would be greatly appreciated!

Best Answer

I got the same problem. I solved it after setting permissions to folders.I set permission using below command and it worked.In my case root is the admin user. Please update command accordingly.

sudo chown -R root:root .
sudo find . -type f -exec chmod 777 {} \; && sudo find . -type d -exec chmod 777 {} \;
Related Topic