title: Laravel routes are not working on production server 404 error
body: <p>I have a laravel project, which is working fine on the local machine, where I have it set up on homestead, but when I have uploaded project to the production server on namecheap, none of the links or routes are working, I only get the index page open with no style, and if I click on any of the links I get 500 error. 
  I have follow the suggested steps <a href="https://stackoverflow.com/questions/44868393/laravel-shared-hosting-routes-not-working-properly/46409411#46409411">here</a>:</p>
  
  <p>So, my laravel project directory is in the same level as public_html, as well as public directory from my laravel project. They are all in the same directory level. And I have changed the paths in the <code>index.php</code> file:</p>
  
  <pre><code>require __DIR__.'/mariva/bootstrap/autoload.php';
  $app = require_once __DIR__.'/mariva/bootstrap/app.php';
  </code></pre>
  
  <p>Then, I have changed the server.php inside the laravel project directory:</p>
  
  <pre><code>require_once __DIR__.'../public_html/index.php';
  </code></pre>
  
  <p>Permission were set apparently by the namecheap customer service, but I still get 404 error for all my css and js files, as well as when clicking on some html links on my page.</p>
  
  <p>In the view file I am calling my css files like this:</p>
  
  <pre><code>&lt;!-- CSS Files --&gt;
    &lt;link href="{{ asset('css/material-kit/css/bootstrap.min.css') }}" rel="stylesheet" /&gt;
    &lt;link href="{{ asset('css/material-kit/css/material-kit.css') }}" rel="stylesheet"/&gt;
    &lt;link href="{{ asset('css/landing-page.css') }}" rel="stylesheet"/&gt;
  </code></pre>
  
  <p>And js file the same way:</p>
  
  <pre><code>&lt;!--   Core JS Files   --&gt;
  &lt;script src="{{ asset('js/landing-page/jquery.min.js') }}" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('js/landing-page/bootstrap.min.js') }}" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('js/landing-page/material.min.js') }}"&gt;&lt;/script&gt;
  
  &lt;!-- Control Center for Material Kit: activating the ripples, parallax effects, scripts from the example pages etc --&gt;
  &lt;script src="{{ asset('js/landing-page/material-kit.js') }}" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Not sure how can I fix that?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I have managed to fix the css and js issue of not opening the files, I have moved the files to the wrong directory by mistake. But I still can't get any links on the page to work?</p>
  
  <p>In my view I have links like this one:</p>
  
  <pre><code>&lt;a href="{{ url('/login') }}"&gt;Login&lt;/a&gt;
  </code></pre>
  
  <p>And when clicking on them I get <code>404</code> error.</p>