From 0e4bace9029e869acc24592db3cc23eb86f9b0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20J=2E=20Garc=C3=ADa=20Lagar?= Date: Mon, 10 Feb 2025 11:14:49 +0100 Subject: [PATCH] Forbid method switching (#1690) --- 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 f7345dfb..082060eb 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.