From 02fc8d813f38797f3362b14574ce9ec3c58e9db5 Mon Sep 17 00:00:00 2001 From: ericgsmith Date: Thu, 5 Oct 2023 07:26:56 +1300 Subject: [PATCH] Issue #71: Compiled assets broken with too many redirects on Drupal 10.1 (#72) Co-authored-by: Eric Smith --- recipes/drupal10/default.conf.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/drupal10/default.conf.tpl b/recipes/drupal10/default.conf.tpl index b69d571..49ed496 100644 --- a/recipes/drupal10/default.conf.tpl +++ b/recipes/drupal10/default.conf.tpl @@ -55,7 +55,8 @@ server { } location @rewrite { - rewrite ^/(.*)$ /index.php?q=$1; + #rewrite ^/(.*)$ /index.php?q=$1; # For Drupal <= 6 + rewrite ^ /index.php; # For Drupal >= 7 } # Don't allow direct access to PHP files in the vendor directory.