Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 80d96b1

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: Disabled MultiViews in .htaccess
2 parents bc212d2 + 7658f94 commit 80d96b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
66
DirectoryIndex app.php
77

8+
# Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve
9+
# to the front controller "/app.php" but be rewritten to "/app.php/app".
10+
<IfModule mod_negotiation.c>
11+
Options -MultiViews
12+
</IfModule>
13+
814
<IfModule mod_rewrite.c>
915
RewriteEngine On
1016

0 commit comments

Comments
 (0)