Magento 2 – Fix Admin URL Returning 404 After Installation

installmagento2mamp

I successfully installed Magento 2 using MAMP and OS X, front end is working great but when I clicked the "Launch Magento Admin" button upon installation it returned a 404 on the front end, and when trying to access the admin manually through http://localhost/magento2/admin the same thing happens.

I tried deleting all files and starting over but am facing the same issue.

Has anyone had this happen before? Thanks in advance.

Edit: So I forgot to mention I was using port 8888, and it turns out using anything other than port 80 causes a re-direct when trying to access the admin (as shown in the below answer)

Best Answer

If you use different port from 80, then look at https://github.com/magento/magento2/issues/2278

Related Topic