title: Symfony2: how to set url only with the slug
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9570115/custom-symfony-routing-based-on-doctrine">Custom symfony routing based on doctrine</a>  </p>
  </blockquote>
  
  
  
  <p>I have several url in my project related to each object type. Ex.</p>
  
  <p>For products:</p>
  
  <pre><code>/product/product-1
  /product/product-2
  </code></pre>
  
  <p>But now I created a controller for general info management. Ex. terms of use, about us ..etc.</p>
  
  <p>I want urls that only contains the page slug.</p>
  
  <pre><code>/terms-use
  /about-us
  </code></pre>
  
  <p>Not:</p>
  
  <pre><code>/page/terms-use
  /page/about-us
  </code></pre>
  
  <p>How to define this in routing.yml?</p>