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

Commit 0d2bd63

Browse files
committed
Disabled MultiViews in .htaccess
1 parent e7153ce commit 0d2bd63

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
@@ -8,6 +8,12 @@ DirectoryIndex app.php
88
<IfModule mod_rewrite.c>
99
RewriteEngine On
1010

11+
# Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve
12+
# to the front controller "/app.php" but be rewritten to "/app.php/app".
13+
<IfModule mod_negotiation.c>
14+
Options -MultiViews
15+
</IfModule>
16+
1117
# Determine the RewriteBase automatically and set it as environment variable.
1218
# If you are using Apache aliases to do mass virtual hosting or installed the
1319
# project in a subdirectory, the base path will be prepended to allow proper

0 commit comments

Comments
 (0)