diff --git a/code/web/public_php/ams/files/.htaccess b/code/web/public_php/ams/files/.htaccess
index 655df6494..65a3a44db 100644
--- a/code/web/public_php/ams/files/.htaccess
+++ b/code/web/public_php/ams/files/.htaccess
@@ -1,7 +1,20 @@
-Options -Indexes
+SetHandler none
+SetHandler default-handler
Options -ExecCGI
+
+ php_flag engine off
+
+RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo
+Options -Indexes
DirectoryIndex disabled
-
+
+ SetHandler none
+ SetHandler default-handler
+ Options -ExecCGI
+
+ php_flag engine off
+
+ RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo
ForceType application/octet-stream
Header set Content-Disposition attachment