Apache .htaccess configuration on windows

I had struggled with .htaccess to configure on my local server running on windows XP.

When I change the following setings in apache httppd cofig file, I faced the following issue.

AccessFileName .htaccess
<Directory "C:/wwwroot/mysite">
AllowOverride None to AllowOverride All
Order allow,deny
Allow from all
</Directory>

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Later I found that I did not enable the following module
LoadModule rewrite_module modules/mod_rewrite.so

When I enabled that module, It worked fine.


To create .htaccess file in windows xp.
open the notepad and write

RewriteEngine On
Options -Indexes
RewriteBase /


and save as ".htaccess"