title: My Symfony routes are throwing a 404?
body: <p>I'm trying to get back into development, trying to set up Symfony on a shared hosting server with GoDaddy.</p>
  
  <p>I am going through the tutorial with Symfony 4 (Here: <a href="http://symfony.com/doc/current/page_creation.html" rel="noreferrer">http://symfony.com/doc/current/page_creation.html</a>) but the <code>URL.co.uk/lucky/number</code> is throwing a 404.</p>
  
  <p>I set the exact same URL route to just / (instead of lucky/number) and it works fine.</p>
  
  <p>This problem occurs with both <code>routes.yaml</code>, and annotations.</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App\Controller;
  
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  use Symfony\Component\HttpFoundation\Response;
  
  class ArticleController
  
  {
      /**
       * @Route("/")
       */
      public function homepage()
      {
          return new Response('OMG! My new first page already! ');
      }
  
      /**
       * @Route("/news")
       */
      public function news()
      {
          return new Response('This must be news?');
      }
  
  }
  </code></pre>
  
  <p>For example, the above works fine with /, but with /news I have a 404 error.</p>
  
  <p>Could this be a problem with <code>.htaccess</code>? I don't have one in my root.</p>
  
  <p>It turns out that, with the above code, <code>URL.co.uk/index.php/news</code> works just fine. obviously I don't want this, but I hope it helps get to the bottom of it...</p>