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.
To solve this problem take the following steps:
- Log in to your database using phpMyadmin or similar.
- Find the table labelled core_config_data
- Edit the rows entitled web/unsecure/base_url and web/secure/base_url
- Edit the row web/url/redirect_to_base to 0 instead of 1
- Using your ftp client clear contents of both var/cache and var/sessions folders.
For more info on base urls for magento click here
I work with magento 1.9.0.1 and tried this but still not working
I can not get into admin part.
After a backup restore it still does not work
Can anybody give advise
Johan
You just saved my life!!!
4th point saved my life.
Edit the row web/url/redirect_to_base to 0 instead of 1
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.
Works well! Thanks, especially cleaning the cache directories is valuable additional information.
Nice one.. It works perfectly…
Thanks man! Clearing the Cache did the trick for me!
In additional to above I changed my admin url and then it worked.
One more thing…
web/cookie/cookie_domain
needs to match the domain in web/unsecure/base_url and web/secure/base_url
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.
Thanks a Bunch, Dude.