<FilesMatch "\.(php|php3|php.*|shtml|phtml|sql)$">
  order allow,deny
  deny from all
  satisfy all
</FilesMatch>

RedirectMatch 404 /\.restricted(/|$)