I have these pretty urls:
- app/category/overview
- app/category/new
app/category/edit/4
app/product/overview
- app/product/new
- app/product/edit/4
.htaccess
RewriteEngine On
RewriteRule ^([a-z]+)/([a-z]+)/?([0-9]*)$ index.phpcontroller=$1&action=$2&id=$3 [NC,L]
Is it possible to define that any other other url goes back to the index?
p.e. app/i/am/the/fastest/man/alive ---> app/
Help would be much appreciated!
You can have a new rule for that:
I have added ? after index.php