I am getting 404 error after installation and frontend is working fine.

enter image description here

Does anyone have a solution for this?



2 Answers 2


Check if your url rewrite module is enabled in your system.

if not run following command.

sudo a2enmod rewrite


  • "Module rewrite already enabled" after running this command getting this message
    – Shomita
    Oct 31, 2019 at 9:17
  • check .htaccess is available in magento root directory or not Oct 31, 2019 at 9:21
  • .htaccess is available in root
    – Shomita
    Oct 31, 2019 at 9:23

This has always worked for me.. very simple

1. move the .htaccess from pub folder to root

2. wipe cache

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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