I am developng php application I need to change http://localhost/myste/post.php?id=2 to http://localhost/mysite/best_php_example.html Please instruct me how to do this. I am using XAMPP for the development
Create a .htaccess with a Rewrite rule... RewriteEngine on RewriteRule ^mysite/best_php_example\.html$ /mysite/post.php?id=2 [L]
Take a look at this yourhtmlsource[dot]com/sitemanagement/urlrewriting.html It'll help you get started.
Make sure the Rewrite module is enabled in XAMPP. Sometimes it's disabled by default. Then go along the lines of what NetStar wrote.
just to point out that having .html is not seo friendly. In fact W3.org say you should leave file extensions out of the url. (http://www.w3.org/Provider/Style/URI see What to leave out Section)