How to Fix Magento Redirect Loop Problem

If your magento webshop seems to redirect endlessly on either frontend or admin this fix should work for you

  1. Open your PHPMyAdmin and go to your magento database instance
  2. Look for a table named core_config_data
  3. Look of a row with a web/url/redirect_to_base on its path column and change 0 instead of 1 to its value column and save it
  4. Go to your magento installation /var/ directory and rename the cache directory so we can clear the cache and use the new configuration
  5. Check your site