Add <IfModule *.c> to prevent some errors to .htaccess

This commit is contained in:
slawkens 2020-01-15 20:47:31 +01:00
parent 69d068e73f
commit 45ecc29e12

View File

@ -1,7 +1,19 @@
Options -Indexes -MultiViews
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
RewriteEngine On
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [L]
<IfModule mod_rewrite.c>
RewriteEngine On
# you can put here your myaac root folder
# path relative to web root
#RewriteBase /myaac/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [L]
</IfModule>