I\'m building an application based on the MVC design pattern, and I want my URLS to be like: http://example.com/page/action/. I successfully got it to work with the code below,
RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) $1/ [R=301,L,QSA]