You search Google for info about the .htaccess file and try some tutorials to create one. Then, if you can't figure out how to create one or if you run into problems, you post your questions here, and we can help you.
on localhost try to edit file httpd.conf found in "C:\Windows"
search for line #LoadModule rewrite_module modules/mod_rewrite.so
and remove # to activate rewrite module, restart your PC and try to learn basic rules for htaccess like
Options All -Indexes # prevent user from viewing folder content
RewriteEngine on # switch rewrite ON
RewriteRule ^(.*).html$ $1.php #convert any php page to html page in url address
as @minitauros mentioned try to read a guide for making htaccess file