RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2