From 127f2b22afa6650bca8c1fa3c406e51d69e03577 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Tue, 28 Jun 2022 09:26:17 +0200 Subject: [PATCH] composer/plugin/drupal-environment#6 Rewrite htaccess files every time to stay up-to-date --- src/Handler.php | 4 ++-- templates/.htaccess | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index fbafae8..42e5815 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 cfee85a..553df55 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> -- GitLab