Forbid method switching (#1690)

This commit is contained in:
Antonio J. García Lagar
2025-02-10 11:14:49 +01:00
committed by GitHub
parent 24c33297ae
commit 0e4bace902
+1 -1
View File
@@ -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.