URL rewriting does not work on localhost

Hi all,
I am building a CMS website in PHP on my localhost and I have dynamic URLs, something on the lines of:


Now I was trying to get the links to display in Search Engine Friendly format, preferably something on the lines of:


I tried the Kirupa tutorial located on the following page, but it does not work:

Apart from this, I even tried other searches from Google but none of them helped. As I am doing this on my localhost on my PC, I created a .htaccess file and placed the clean url code into it and placed the .htaccess file in the site root i.e. in “mydomain” folder, which in turn is located in “wamp” folder.

Hopefully someone would be able to help me through this as I have been seaching for an answer for a long time. Any help is highly appreciated.

Thank you in advance.