<FilesMatch "\.(php)$"> Order Deny,Allow deny fromall </FilesMatch> <Files msg.php> allow fromall </Files> <Files but.php> allow from all </Files>