I have Enabled mod_rewrite but still .htaccess is not working . It is not effecting but if i write something wrong in .htaccess file then it does show server error. In my htdocs i have folder called myfile .
RewriteEngine On
RewriteRule ^myfile/PHP/project/$ /myfile/PHP/project/about.php
If you are placing .htaccess file in project directory then use following code,
RewriteEngine On
RewriteRule ^\.*$ /myfile/PHP/project/about.php
The code in your question only work if the .htaccess file is placed public root directory.
Also, to disable directory listing add following code (case-sensitive) in .htaccess file.
Options -Indexes
You have to turn your "AllowOverride" to "all" and add this "Options FollowSymLinks" in your virtualhost or httpd.conf