404 Error Page Not Found magento2

Id you are not able to open admin page or menu but home page work fine it’s issue of Rewrite mode.

Make sure Rewrite mode is enable on your server you can write this command to enable to Rewrite mode

sudo a2enmod rewrite

Configure apache

edit apache2.conf it can be found /etc/apache2/apache2.conf

you can open it by vi editor by writing this command

sudo vi /etc/apache2/apache2.conf 

Change this line

<Directory /var/www/>
     Options Indexes FollowSymLinks
     AllowOverride None
     Require all granted
</Directory>

To

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Now Restart Apache server by following command

sudo service apache2 restart OR sudo /etc/init.d/apache2 restart

Share this post