i'm beginner to MVC framework. I'm trying to create one my own based on tutorials.
.htaccess file that they provide contains:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]
i get 500 server error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
I checked httpd.conf to check if mode_rewrite was not commented. Can anyone help me please? i'm using LAMPP on Ubuntu 12.04
Try cjriii's answer and if that doesn't work, check the AllowOverride variable in the httpd.conf file and make sure it says All and not None. That tripped me up the first time I started working with mod_rewrite too.
Changed to:
Note, "[QSA, L]" vs. [QSA,L]
Duplicated your error, removed space, worked). I'm using WAMP.