Magento 2 Admin Redirect Loop – How to Fix

adminmagento2

Magento 2 was just released last night and, I can't wait to work on it.
I tried installing it with all prerequisites.

Frontend works fine. But when I tried to open the backend, it says "this webpage has a redirect loop".
Magento created "admin_r2sxkn" as a unique backend URL.
My Admin URL is http://localhost/magento2/admin_r2sxkn

As a solution, I tried deleting the cache which did not work.

P.S I have xampp on mac, with the latest versions of PHP and MySql, installed PHP extension incl as required.

Any help would be appreciated.

enter image description here

Best Answer

A browser does not support cookies on top-level domains like localhost. Please reinstall Magento on a different hostname (ex. magento.dev).

Also, Magento supports only Linux. So better to use Vagrant for development. You can use any exists preconfiguret vagrant instance that do all work for you

Related Topic