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..
http://www.vitagamer.net/Game.aspx?id=12
to
http://www.vitagamer.net/games/this-is-a-game-name/
now I've been thinking about the following algorithm..
- receive the requested url..
- break into parts, and search database for id associated with "this-is-a-game-name".
- serve the
http://www.vitagamer.net/game.aspx?id=12
page
I've been looking on the web but i'm confused. How do I do the mapping? how many ways are there?
is there a difference between rewriting and mapping?
Update
I also need to add hyperlinks to my pages that are shown like
http://www.vitagamer.net/games/gamename/
should I just do things with strings? or there's a more efficient way.