<FilesMatch "\.(?i:png|jpg|jpeg|gif|svg)$"> # Remove any script handlers associated with these extensions RemoveHandler .php .phtml .php3 .php4 .php5 RemoveType .php .phtml .php3 .php4 .php5 # Explicitly force the correct image MIME type ForceType image/png </FilesMatch>