Problem: If it happens that .htaccess file is ignored in your site folder do the following things.
Step 1.
Open httpd.conf
Step 2.
Find the directive
Step 3
Check that AllowOverride directive is set to “AllowOverride All”
Step 4
Restart apache to refresh the settings.