Issue with mod_rewrite in apache

savge17

New Member
This isn't really a problem of mod_rewrite, but mine. I'm pretty sure that my mistake is very stupid, but I can't resolve it.I set up a very simple XAMPP installation on Mac OS X Lion, with a simple index.php script who does nothing. I'm only trying to learn how to use friendly url in php, so, if I received an url with this format\[code\]http://localhost/project/controller_name/action_name/id\[/code\]so, if I received this\[code\]http://localhost/project/user/delete/7\[/code\]can use internally something like this\[code\]http://localhost/project/index.php?controller=user&action=delete&id=7\[/code\]I created a .httacess on the project folder with this content\[code\]RewriteEngine OnRewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /aletta/index.php?controller=$1&action=$2&id=$3 [L]\[/code\]I checked if mode_rewrite was enabled and it was. But doesn't work. I type \[code\]http://localhost/project/user/delete/7\[/code\] and the page says "Object not found!"Any help will be greatly appreaciate
 
Top