If you find that your mod rewrite is enabled, but doesn’t seem to be working you may need to add this little bit of code to your httpd.conf file.
AllowOverride All
It’s possible your file might have the following:
AllowOverride None
If your AllowOverride was set to none then your .htaccess files in your project directory are not able to set their own settings including url rewriting.
Make sure to restart Apache after applying this change to your httpd.conf file.
The following link helped me solve my problem.
Share this Story