title: symfony 2 routes not found in production
body: <p>I have routes like: /, /login, /register, etc that work fine in dev environment.</p>
  
  <p>At first i got 404 error when tried to access my site through app.php instead of app_dev.php</p>
  
  <p>Then i followed <a href="https://stackoverflow.com/questions/6631190/symfony2-access-same-route-in-production-as-development">this advice</a> and cleaned up my cache.</p>
  
  <p>But now i'm getting a blank screen trying to access any of the registered  routes like app.php/ or app.php/login.</p>
  
  <p>I found this message in prod.log:</p>
  
  <pre><code>[2012-02-24 11:27:05] request.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /login" (uncaught exception) at /home/renat/www/ptracker/app/cache/prod/classes.php line 4564 [] []
  </code></pre>
  
  <p>Here is my routing.yml:</p>
  
  <pre><code>PtrackerTasksBundle:
  resource: "@PtrackerTasksBundle/Resources/config/routing.yml"
  prefix:   /
  
  PtrackerAuthBundle:
  resource: "@PtrackerAuthBundle/Resources/config/routing.yml"
  prefix:   /
  </code></pre>
  
  <p>routing.yml in AuthBundle:</p>
  
  <pre><code>homepage:
  pattern:  /
  defaults: { _controller: PtrackerAuthBundle:Default:index }
  
  register:
  pattern:  /register
  defaults: { _controller: PtrackerAuthBundle:Default:register }
  
  login:
  pattern:  /login
  defaults: { _controller: PtrackerAuthBundle:Default:login }
  
  activate:
  pattern:  /activate/{username}/{salt}
  defaults: { _controller: PtrackerAuthBundle:Default:activate }
  
  login_check:
  pattern:  /login_check
  </code></pre>
  
  <p>routing.yml in TasksBundle:</p>
  
  <pre><code>tasks:
  pattern:  /tasks
  defaults: { _controller: PtrackerTasksBundle:Default:index }
  
  tasks_add:
  pattern:  /tasks/add
  defaults: { _controller: PtrackerTasksBundle:Default:add }  
  
  tasks_view:
  pattern:  /tasks/view/{id}
  defaults: { _controller: PtrackerTasksBundle:Default:view, id : null }  
  
  tasks_change_responsible:
  pattern:  /tasks/change_responsible/{id}/{responsible}
  defaults: { _controller: PtrackerTasksBundle:Default:change_responsible, _format: json }  
  
  tasks_change_status:
  pattern:  /tasks/change_status/{id}/{status}
  defaults: { _controller: PtrackerTasksBundle:Default:change_status, _format: json }    
  
  tasks_edit:
  pattern:  /tasks/edit/{id}
  defaults: { _controller: PtrackerTasksBundle:Default:edit } 
  </code></pre>
  
  <p>What did i miss or what am i doing wrong?</p>