# Set proper MIME types for HTML files
AddType text/html .html
AddType text/html .htm

# Force HTML files to display inline instead of downloading
<FilesMatch "\.(?i:html|htm)$">
    ForceType text/html
    Header set Content-Disposition "inline"
</FilesMatch>

# Preserve existing rewrite rules
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html