YII2 The requested URL was not found on this server

Totally new to the framework (YII2) and my first interaction with the framework am working with an already existing web app developed by someone else. After successful connection to the database, I try visiting the site through localhost just to get an error The requested URL /dwg/auth/auth/login was not found on this server.

I get this on both windows machine and Linux. What could be the issue? Have I missed something on the configuration?

I think the link was wrong. It should be /dwg/auth/login. But you should also check the path (controller and view file)

could be your url rewrite settings, can you share you server information on server and local

I was able to solve the issue by moving all the project files to the root directory /var/www/html

mv dwg/* /var/www/html