Mod Rewrite Enabled But Not Working

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.

http://stackoverflow.com/questions/17772962/laravel-4-simple-route-not-working-using-mod-rewrite-and-htaccess

Share this Story
Load More Related Articles
Load More By Nick Escobedo
Load More In How-To's

Check Also

Laravel Sleep Facade and How To Write Tests Without Slowing Down Your Test Suite

Learn how to use the sleep facade and ...