Updated apache pack recipe

This commit is contained in:
Jan Böhmer 2025-07-13 12:11:50 +02:00
parent 5c4aa11b4b
commit e5cf8550ee
2 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,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.