diff --git a/src/Handler.php b/src/Handler.php
index fbafae856d97f9d337c876c9854b9614b238ceae..42e5815e059da60242df758bcfe3565757d14fd1 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -97,8 +97,8 @@ class Handler extends BaseHandler {
       $path = $projectRoot . '/' . $dir;
       if (!$fs->exists($path)) {
         $fs->mkdir($path);
-        $fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
       }
+      $fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
       if ($this->config->readValue('chg-acl')) {
         $fs->chgrp($path, $this->config->readValue('webserver-groupname'), TRUE);
       }
@@ -163,8 +163,8 @@ class Handler extends BaseHandler {
       $path = $projectRoot . '/config/default/environments/' . $subdir;
       if (!$fs->exists($path)) {
         $fs->mkdir($path);
-        $fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
       }
+      $fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
     }
   }
 
diff --git a/templates/.htaccess b/templates/.htaccess
index cfee85a0633ff810f22682aae266379c4afcf0cb..553df559f90a8749f696f3f3e93f18486daec77a 100644
--- a/templates/.htaccess
+++ b/templates/.htaccess
@@ -22,3 +22,6 @@ SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
 <IfModule mod_php7.c>
   php_flag engine off
 </IfModule>
+<IfModule mod_php.c>
+  php_flag engine off
+</IfModule>