Yii project not working on server
<p>I have a project built in <code>yii</code> version 2.My issue is that the project is running as expected on localhost but not on the server.</p>

<p>I just copy pasted the folder from htdocs to server </p>

<blockquote>
  <p>/var/www/html/project foler.</p>
</blockquote>

<p>I did the necessary changes in the db. The first login page opens as expected but once I click on login, the next page doesn't open saying as <code>404 Page not found error</code>.</p>

<p>The login url is </p>

<blockquote>
  <p>Server_IP/project/web</p>
</blockquote>

<p>and then the redirecting url is </p>

<blockquote>
  <p>Server/project/web/home</p>
</blockquote>

<p>which is not found.</p>

<p>When checked further I noticed that the <code>yii</code> code isn't been detected for internal files other than the <code>Site</code> folder's <code>login.php</code> file.</p>

<p>Can someone please suggest what is the issue </p>