I am trying to install Magento 2.4.2 on my windows machine using wamp. Getting 404 error after installed the Magento successfully.

Can anyone please help?

  • Steps I followed to resolve the issue: ----------------------------------------------------------------------------- php bin/magento config:set web/seo/use_rewrites 0 ------------------------------------------------------------ bin/magento deploy:mode:set developer ------------------------------------------------------------------------ php bin/magento cache:clean----------------------------------------------------------------------------------- Added virtual host using Wamp
    – Octopus
    Commented Jun 16, 2021 at 10:51

3 Answers 3



go to below configuration in admin

Stores -> Configurations -> General ->Web -> Search Engine Optimization -> Use Web Server Rewrites

and disable "Use Web Server Rewrites".


run below command from ssh

php bin/magento config:set web/seo/use_rewrites 0 
php bin/magento cache:clean

if it works for you that mean issue with php rewrite module

hope this helps you :)

  • Hi, I have followed the second option. In addition to that, I have set the default mode as a developer. bin/magento deploy:mode:set developer
    – Octopus
    Commented Jun 16, 2021 at 10:48
  • second option works for you?? and yes its better to work in developer mode instead of default mode Commented Jun 16, 2021 at 11:19

Kindly verify the .htaccess in base folder pub/static folder.


Check that your webserver document root folder is set to the magento/pub folder

e.g. for Apache

DocumentRoot /var/www/magento2/pub/
  • Since am using windows, I have added this step using wamp's VirtualHost management
    – Octopus
    Commented Jun 16, 2021 at 10:50

Your Answer

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

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