RewriteEngine On
RewriteRule ^(.*)/(.*)/$ index.php [L]
RewriteRule ^(.*)/(.*)$ index.php [L]
RewriteRule ^(.*)/$ index.php [L]