Commit f8d43e72 authored by Igor Wiedler's avatar Igor Wiedler

also disable apache MultiViews

MultiViews is a content-negotiation option for apache that will, when requesting /resource try to serve /resource.ext. if you have a blog.php this can lead to /blog serving you blog.php instead.

this can be quite common with mounted apps.

great thanks to Rafael Filipek for discovering this.
parent fc85a9ad
...@@ -30,10 +30,12 @@ are using apache you can use a ``.htaccess`` file for this. ...@@ -30,10 +30,12 @@ are using apache you can use a ``.htaccess`` file for this.
.. code-block:: apache .. code-block:: apache
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine On Options -MultiViews
#RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f RewriteEngine On
RewriteRule ^(.*)$ index.php [QSA,L] #RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule> </IfModule>
.. note:: .. note::
......
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine On Options -MultiViews
#RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f RewriteEngine On
RewriteRule ^(.*)$ index.php [QSA,L] #RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule> </IfModule>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment