.htaccess is a web server directive file populalrly used in Apache Web Server in Linux / Unix environment. In windows environment there is a simple way to enable and use .htaccess. Additionally it allows you to create nice permalinks for software like WordPress or phpBB.

To use .htaccess you need to enable mod_rewrite. Even with that I didn't have much success when I separately installed apache web server and php. However if you install XAMPP it is a piece of cake.

XAMPP automatically installs Apache web server, MySQL database, PHP and a lot of other goodies. It does not however come with mod_rewrite enabled. Let us assume you installed XAMPP in %XAMPP% directory. Then you should open %XAMPP%\apache\conf\httpd.conf in notepad and search for mod_rewrite. You will find a line like:
#LoadModule rewrite_module modules/mod_rewrite.so
Remove the # from the beginning. It will now look:
LoadModule rewrite_module modules/mod_rewrite.so

Restart the Apache web server through XAMPP control panel. You are done!