RewriteEngine on #RewriteCond %{REQUEST_FILENAME} !-d (salcito)$ [NC] RewriteCond %{REQUEST_FILENAME} !\.(js|jpe?g|gif|css|swf|ico|txt|xml)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*).html$ main.php?%{QUERY_STRING}[R,L] DirectoryIndex main.php index.html index.php