After installing Magento 2, I can't access the administrator page it shows 404 error, see screenshot:

404 error


Refer my question here. Steps to solve this.

  1. You need to enable module rewrite in server.(If you don't know refer this)

Run in CLI

  1. To deploy content: php bin/magento setup:static-content:deploy

  2. To flush cache: php bin/magento cache:flush

  3. To Reindex data: php bin/magento indexer:reindex

Now check your both frontend and admin.

Not the answer you're looking for? Browse other questions tagged or ask your own question.