.htaccess enable in windows machine
How to access .htaccess in a windows machine:
1. First rename the .htaccess file as something like htaccess.fl
2. Then go to httpd.conf of Apache folder, Program Files -> Apache -> conf -> httpd.conf
3. In the httpd.conf file, you may find words inside the directory as example:
By default it will be:
Change it as :
4. Below that, you may find
change it to:
Usually in windows, .files starting will not be considered. so we should change to our convenient name extension and give them here.
5. If you are using any rewrite mod functions, you should uncomment this modules.
Suppose if you are using any rewrite functions, then you should uncomment the below ones:
LoadModule rewrite_module modules/mod_rewrite.so
and also in ModuleList:
By default these modules will be commented.
6. Now restart the apache.