AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php .php .htm .html

<FilesMatch "\.(php|html|htm)$">
    <IfModule mod_headers>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>

<IfModule mod_headers.c> 	
	Header set Cache-Control "no-cache, no-store, must-revalidate"
 	Header set Pragma "no-cache"
 	Header set Expires 0
</IfModule>

# compressão básica
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js)$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
Options All -Indexes
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*\.(?:m3u8)$ live.php?data=$0 [NC,L,QSA]
RewriteRule ^.*\.(?:ts)$ live.php?data=$0 [NC,L,QSA]
RewriteRule ^(.*)([0-9]+)$ live.php?data=$0 [NC,L,QSA]
RewriteRule ^.*\.(?:mp4)$ vod.php?data=$0 [NC,L,QSA]
</IfModule>

# Proteger os arquivos e diretórios
<FilesMatch "(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)? |xtmpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>

# Não mostrar listagens de diretório
Options -Indexes