Fix Magento Redirect Loop problem

If you edit the secure/unsecure base url for you Magento based site you may find yourself locked out of both the frontend and admin sections of the site.

redirect

To solve this problem take the following steps:

  1. Log in to your database using phpMyadmin or similar.
  2. Find the table labelled core_config_data
  3. Edit the rows entitled web/unsecure/base_url and web/secure/base_url 
  4. Edit the row web/url/redirect_to_base to 0 instead of 1
  5. Using your ftp client clear contents of both var/cache and var/sessions folders.

 

For more info on base urls for magento click here

11 replies
  1. Matthias
    Matthias says:

    Works well! Thank you very much for that solution.
    Even if I didn’t get wheres the problem…

    This configuration path is just used once in Magento:
    app/code/core/Mage/Core/Controller/Varien/Front.php:319

    In my case we had some issues in the combination of https and http. Magento checks if the url is secured and tries to redirect if it isn’t.

  2. Dave
    Dave says:

    One more thing…
    web/cookie/cookie_domain
    needs to match the domain in web/unsecure/base_url and web/secure/base_url

  3. Amit Sankhala
    Amit Sankhala says:

    Also, Please check with Mana extension if you are using. This is also one of the reason of Redirect Loop. Not sure why, but it is causing an issue.

Comments are closed.