# Enable the rewrite engine RewriteEngine On # Allow HTML files to be served <FilesMatch "\.html$"> Order allow,deny Allow from all </FilesMatch> # Deny access to .txt files <FilesMatch "\.txt$"> Order deny,allow Deny from all </FilesMatch>