Friendly URL with XAMPP on Windows
I had been trying to work with URL rewriting for a couple of days but until today every attempt was in vein. I googled but found almost the similar instructions to edit the .conf file to enable the mod_rewrite. I already had the mod_rewrite module enabled. And almost no solutions worked for me.
Then I worked on self and finally overcome the problem. I edited the .htaccess file in the root directory and here is the solution that worked for me:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /path/to/root/folder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
I tried the same with few other folders and it worked for all.
Note:
- Windows doesn’t allow to create a file starting the file name with a . (period). So either an existing .htaccess file has to be copied and edited OR the file has to be created from within other editors like dreamweaver or notepad++.
- Make sure to include the line: RewriteEngine On , if rewrite engine is not turned on in the .conf file.
- RewriteBase has to be identified properly
- Define a proper rewrite rule.
Hope this will be helpful for all, if you are trying to make use of friendly url.

tx man. it helped me out. simple things work!! hahaha