title: How manage several folders in my domain?
body: <p>I want create subdomains like this:</p>
  
  <pre><code>domain.com/type/city
  </code></pre>
  
  <p>An examples:</p>
  
  <pre><code>domain.com/restaurants/new_york
  domain.com/hotels/new_york
  domain.com/restaurants/chicago
  </code></pre>
  
  <p>I have thousand of cities in a mysql database.</p>
  
  <p>I thinked in some options:</p>
  
  <ul>
  <li>Thousand of folders with an index.php for redirect (I think wrong way).</li>
  <li>Create an sitemap with all links (domain.com?type=hotels&amp;city=chicago) and manage they by code with the database.</li>
  <li>Apache?</li>
  </ul>
  
  <p>Please, which will be the best way for this? Thanks in advance!</p>