RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/js/ RewriteCond %{REQUEST_URI} !^/css/ RewriteCond %{REQUEST_URI} !^/images/ RewriteRule ^(.[a-zA-Z0-9]+)/([a-zA-Z0-9]+)/(.+)/?$ index.php?action=$1&act=$2 RewriteRule ^([^.]+)$ /index.php