I need to have one entry point for my application - index.php. Before, i used to have such line of code:
RewriteRule ^(.*)$ /index.php [L]
Now, i need to force trailing slashes. I found out, that I can use such line:
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301]
But I want to know, how can I make it work both together.