RewriteRule ^([a-zA-Z]+)/([0-9]+)$ index.php?act=$1&cat=$2 [L] RewriteRule ^([a-zA-Z]+)$ index.php?act=$1 [L]