From 0b00b683327b2c3182d1bc0c7055b10f3ebb2fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20J=2E=20Garc=C3=ADa=20Lagar?= Date: Thu, 10 Oct 2024 13:32:25 +0200 Subject: [PATCH] Forbid method switching --- symfony/apache-pack/1.0/public/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/apache-pack/1.0/public/.htaccess b/symfony/apache-pack/1.0/public/.htaccess index f7345dfba..082060eb7 100644 --- a/symfony/apache-pack/1.0/public/.htaccess +++ b/symfony/apache-pack/1.0/public/.htaccess @@ -50,7 +50,7 @@ DirectoryIndex index.php # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the # following RewriteCond (best solution) RewriteCond %{ENV:REDIRECT_STATUS} ="" - RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] + RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=308,L] # If the requested filename exists, simply serve it. # We only want to let Apache serve files and not directories.