htaccess - URL ohne Suffix - Verzeichnisse werden nicht erkannt
Die neue htaccess, welche ab 3.2 mitgeliefert wird macht Probleme bei der Verwendung von:
Code:
# If you do not want to use an URL suffix at all, you have to add a second # line to prevent URLs that point to folders from being rewritten (see #4031).
#
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
#
Die Verzeichnisse werden nicht mehr erkannt.
In 3.2 wurde der Block:
Code:
# For more information see: https://github.com/contao/core/issues/4364 ##
<FilesMatch "\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|woff|svg|ttf|pdf|gz)$">
RewriteEngine Off
</FilesMatch>
entfernt und weiter unten hinzugefügt
Code:
# Note that not all environments support mod_rewrite and mod_cache. ##
RewriteCond %{REQUEST_FILENAME} !\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|otf|tt[cf]|woff|svg|svgz|pdf|gz)$
....
ändere ich die htaccess wieder wie sie bei 3.1 war funktionierts.