RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-f #RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?d=$1 [L]