Liste der Anhänge anzeigen (Anzahl: 1)
Fehlerhafte URI wenn Rewrite aktiviert
Hallo, Ich benutze die Banner Erweiterung 3.5.2 auf Contao 3.4.4. Wenn ich in der htaccess die folgenden Zeilen auskommentiere wird, wird folgende Ausgabe erstellt: Anhang 16133
Wie sieht meine htaccess aus?
Code:
##
# By default, Contao adds ".html" to the generated URLs to simulate static
# HTML documents. If you change the URL suffix in the back end settings, make
# sure to change it here accordingly!
#
# RewriteRule .*\.html$ index.php [L] # URL suffix .html
# RewriteRule .*\.txt$ index.php [L] # URL suffix .txt
# RewriteRule .*\.json$ index.php [L] # URL suffix .json
#
# If you do not want to use an URL suffix at all, you have to add a third
# line to prevent URLs that point to folders from being rewritten (see #4031).
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
#
# If you are using mod_cache, it is recommended to use the RewriteRule below,
# which adds the query string to the internal URL:
#
# RewriteRule (.*\.html)$ index.php/$1 [L]
#
# 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]|woff2?|svgz?|pdf|gz)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .*\.html$ index.php [L]
##
# The following rules are required if you want to pass the language as first
# URL parameter (added in Contao 2.11). The first rule rewrites the empty URL
# to the front end controller, the second one adds a missing trailing slash.
##
RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
Ihr seht das meine htaccess etwas angepasst ist, da es anderweitig nicht möglich war das URL Rewrite ohne Suffix anzuschalten. Vielleicht hängt es damit mit der doppelten Zeile ( RewriteCond %{REQUEST_FILENAME} !-f) zusammen? Wenn ich diese ausschalte funktioniert das Rewrite nicht mehr.