oh really?

seriously, what I want is to:
1. type title of the entry "this is the url", and choose a category for it, like "news"
2. sql saves it as $realtitle="this is the url" and also $title="this-is-the-url"
3. instead of
www.example.com/index.php?id=49 I want to have
www.example.com/news/this-is-the-url.
as far as I read it has to do something with .htaccess files?
I can't find a good tutorial, since I don't know how to search for this in google. any keyword or a link are appreciated. thanks