title: How to implement friendly URLs without breaking images, CSS and JavaScript?
body: <p>The links on my site are displayed as follows:</p>
  <pre><code>blog.php?id=Blizzard
  </code></pre>
  <p>How can I convert them as follows?</p>
  <pre><code>blog/Blizzard
  </code></pre>
  <p>Using <code>.htaccess</code> or PHP?</p>
  <hr />
  <p>I used the following directive in <code>.htaccess</code>:</p>
  <pre><code>RewriteRule ^blog/(.*)$ ./blog.php?id=$1
  </code></pre>
  <p>But the images, CSS and JavaScript are destroyed!?</p>