Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)\.html$ index.php?q=$1