<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/$ index.php?mod=$1 [L,QSA]
</IfModule>