title: How do I force my PHP Symfony project to stay in dev mode?
body: <p>If I access <code>symfonyproject.local/app.php</code>, it uses the production environment. If I access <code>symfonyproject.local/app_dev.php</code>, it uses the dev environment. I want to develop and test quickly, so I need any URL to load app_dev.php.</p>
  
  <p>But when I click a link in the dev environment, like <code>&lt;a href='/users'&gt;Link&lt;/a&gt;</code>, it obviously loads <code>symfonyproject.local/users</code> and not the <code>symfonyproject.local/app_dev.php/users</code> that I need. How can I force clicking a link in dev environment to automatically stay in dev environment? Is there a feature that rewrites the all URLs or do I have to create it on my own?</p>