I'm trying to get a PHP routing library set up. They give this example for a .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
I couldn't get this to work, so I tried enabling mod_rewrite, but it says "Module rewrite already enabled".
Why is it not working properly? Thanks! I'm running Ubuntu Precise 12.04, and apache2.2.22. (Checked for any updates)
EDIT: A couple more details, it's a PuPHPet vagrant build, rewrite should be enabled.
AllowOverrideis necessary for the configuration in question.Allow from Allhas nothing to do with the question and may not be appropriate for @randomdev's environment. – Mark Dec 19 '15 at 16:15