RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [L] RewriteRule ^([^/]+)/$ index.php?action=$1&{QUERY_STRING} [L]