title: How can I implement SEO-friendly URL with php?
body: <p>I'm currently using Apache HTTP + PHP + MongoDB.</p>
  
  <p>I'm trying to implement "stackoverflow"-like url which is SEO friendly.</p>
  
  <p>Should I read a title from each article and somehow send that to Apache? If so, how can I do that?</p>
  
  <p>So that Apache can handle that the title string with mod_rewrite and having URL like</p>
  
  <pre><code>www.example.com/123/seo-friendly-page 
  </code></pre>
  
  <p>Give me some ideas with an example snippet code</p>