title: Url Mapping with asp.net
body: <p>I'm creating a site, and i need to have my urls mapped . I want to avoid losing css during mapping. I want something like this..</p>
  
  <pre><code>http://www.vitagamer.net/Game.aspx?id=12
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http://www.vitagamer.net/games/this-is-a-game-name/
  </code></pre>
  
  <p>now I've been thinking about the following algorithm..</p>
  
  <ol>
  <li>receive the requested url..</li>
  <li>break into parts, and search database for id associated with "this-is-a-game-name".</li>
  <li>serve the <code>http://www.vitagamer.net/game.aspx?id=12</code> page</li>
  </ol>
  
  <p>I've been looking on the web but i'm confused. How do I do the mapping?
  how many ways are there?</p>
  
  <p>is there a difference between rewriting and mapping?</p>
  
  <hr>
  
  <p>Update</p>
  
  <p>I also need to add hyperlinks to my pages that are shown like </p>
  
  <pre><code>http://www.vitagamer.net/games/gamename/
  </code></pre>
  
  <p>should I just do things with strings? or there's a more efficient way.</p>