how to remove function controller in url with .htaccess.
example
www.domain.com/controller/function/variable
to
www.domain.com/controller/variable
i try write the .htaccess file like this
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^index.php/catalog/([^./.]+)$ ./catalog/index/$1
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
catalog is controller and index is function
but not works, it bring out the 404 page.
thanks.
config/routes.php.