DirectoryIndex index.php index.html Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/?(.*)\.html$ /index.php?q=$1 [QSA,L]