-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento2 Backend, gives redirect loop #2473
Comments
Has hopefully nothing todo with your bug but dev.magento_2.nl is not a valid domain name |
Thanks for the reply, |
Ok, Sorry for being a "DUMB A#@". |
How did you solved this ? I am getting in this trouble too. |
If you are using apache, in your local DEV env, try to use/configure virtual host entry, also do not forget to make changes to the hosts file, finally test your domain name like I hope this will help... |
Don't use your domain name symobol _, example site_dev.example.com |
Its worked thanks @sintsov . you are great |
@sankaran-consultant no problem, friend! |
@sintsov , I faced same problem. But your solution works. Thanks a lot. |
Thanks - was really puzzled by this @sidolov |
System Details
host :: http://dev.magento_2.nl [Apache Virtual Host]
PHP Version 5.6.15-1+deb.sury.org~trusty+1
System Linux Elsha 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64
Server API Apache 2.0 Handler
Browser :: Mozilla Firefox for Ubuntu ver 42.0 [All cache enabled]
Issue
Magento2 installed with sample data [full].
Magento2 Frontend, Works fine. [Url :: http://dev.magento_2.nl]
Magento2 Backend, gives redirect loop. [Url :: http://dev.magento_2.nl/mg2admin]
Tried to debug, with following results.
File @ :: "vendor/magento/module-backend/Controller/Adminhtml/Auth/Login.php"
Method :: public function execute()...
Line :: return $this->getRedirect($backendUrl);
causes infianite redirect.
File @ :: "vendor/magento/framework/Controller/Result/Redirect.php"
Method :: public function setPath($path, array $params = [])....
$path = 'http://dev.magento_2.nl/mg2admin/admin/index/index/key/d13fc6c95465f4b9f86eb2734f8aeb985652c2bea2ebacbd39791550536f57e2/';
$params = [];
$this->url = $this->urlBuilder->getUrl($path, $this->redirect->updatePathParams($params));
/*
Returned URL :: http://dev.magento_2.nl/mg2admin/http:/index/dev.magento_2.nl/mg2admin/admin/index/index/key/e667989087990866ee28bb69b7d4d81c05f23964b0da418afd646f2ceff1b49d/
*/
The text was updated successfully, but these errors were encountered: