Is there any plugin to re-write the post urls and remove blog.tld/?p=164 to blog.tld/samsung.html In the same way re-writing of the categories and etc.
There are a couple you can use - the All in One SEO pack or the Platinum SEO Pack - although if I remember correctly Wordpress includes the functionality to rewrite the URLs in the admin panel - you can rewrite the URL to be the same as the title of your post. Wordpress 2.7+ allows you to edit the URL too when you make your post.
You'll find the builtin option at. Settings > Permalinks Edit it to one you like then update your htaccess file.