Admin URL Is Not Working in Magento 2

- Fire development, Magento 2

Magento 2 Development; Magento 2 tutorial

You’ve just installed Magento 2 on a wamp server, but your admin isn’t working. The 404 error is displayed and the frontend is displayed without CSS. Perhaps, we know how to solve the problem.

'

This is the illustration of a possible frontend error:

Magento 2 Shopbot Connector

To fix the issue with the backend, you should:

  1. Apply appropriate permissions:

  1. Enable apache rewrite_module:

  1. Refresh apache server:

Now, your backend is fixed and should work properly. Therefore, let’s try to solve the issue with the frontend.

First of all, you should apply the command below from the Magento root:

The next step requires clearing the var directory but don’t forget about the exception – the .htaccess file. Now, you should check the admin. If 404 is displayed again, the problem is probably caused by Symlinks. Therefore, you need to edit the apache config file:

Find the following code snippet :

Replace it with the following one:

After the changes are applied, restart apache:

Now, check your admin once again: the 404 issue should be fixed now.

One more tip: don’t leave /app/etc/ directory writable.

And if you are using wamp server on windows localhost, simply try the following command in your CLI:

We hope the article was useful. It is based on the StackExchange question by Arun Pal and the answer by Anil Suthar and MaYaNk. For more useful articles, check out our Cookbook.

'