Route is in debug list but returns 404 in Symfony 4 : <p>Ok, so I just installed latest version Symfony 4. Run the browser after installation and a nice welcome greeting shows. All good!</p>

<p>Then I created a new controller using <code>make:controller</code>.  I named this controller Client and is using Annotations, same with the other Default Controller.  I configured the routing as follows:</p>

<pre><code>/**
 * @Route("/client", name="client")
 */
public function index()
{
    // replace this line with your own code!
    return $this-&gt;render('@Maker/demoPage.html.twig', [ 'path' =&gt; str_replace($this-&gt;getParameter('kernel.project_dir').'/', '', __FILE__) ]);
}
</code></pre>

<p>I refreshed the browser and all good, no errors.</p>

<p>Then I manually typed the path into the browser to check if it's really working:</p>

<pre><code>localhost:8000/client
</code></pre>

<p>Problem. The url returned standard apache 404</p>

<pre><code>Not Found
The requested URL /client was not found on this server.

Apache/2.4.18 (Ubuntu) Server at new.staff-fdr.dev Port 80
</code></pre>

<p>The debug route sees this though:</p>

<pre><code>-------------------------- -------- -------- ------ ------------------
  Name                       Method   Scheme   Host   Path   

 -------------------------- -------- -------- ------ -----------------
  client                     ANY      ANY      ANY    /client  
  index                      ANY      ANY      ANY    /       
  _twig_error_test           ANY      ANY      ANY    /_error/{code}.
</code></pre>
