1

A fresh install Magento2.1, but there is "404 not found" error on every page except index.php and in backend.

Beside index.php page's layout is a mess.

Any advice would be appreciated.

2

I had these problem in ubuntu. You may try out these steps.

For front end

Move to directory install magento2. Use command in terminal:

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

For admin side:

<Directory "/var/www/html">
    AllowOverride  all
</Directory>` 

was not present in the end of file /etc/apache2/sites-available/000-default.conf before </VirtualHost>. Also make sure that mod_rewrite is enable by entering command:

a2enmod rewrite

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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