I'm trying to rewrite my url in a project in wamp service but can't get it working.
I want to rewrite based on these two rules basically
FROM:
- localhost/project/modulos/tags/edit/3
TO:
- localhost/project/modulos/tags/index.php?action=edit&id=3
AND FROM:
- localhost/project/modulos/tags/lis
TO:
- localhost/project/modulos/tags/index.php?action=list
My htaccess is like this:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^modulos\/(.*)\/(.*)$ index.php?action=%1&id%2 </IfModule>