Hallo Community,
Ich habe eine kleine Frage zum Suffix. Ich bin zwar kurz vor dem durchbruch, jedoch bin ich mit nicht ganz sicher ob das so alles stimmt.
Ich möchte meine Seite nicht nur so:
www.meinedomain.de/nachrichten.html sondern so
www.meinedomain.de/nachrichten
also ohne Suffix aufrufen.
Ich betreibe Contao in keinem Unterverzeichnis.
Soweit ich weiß kann ich dies in der .htaccess einstellen.
Meine Datei sieht wiefolgt aus:
Nun bin ich mir nicht sicher was ich verändern muss. Und die beudeutung des mod_cache ist mir auch nicht ganz klar.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 .* index.php [L] # No URL suffix
# RewriteRule .*\.txt$ index.php [L] # URL suffix .txt
#
# 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.
##
RewriteRule .*\.html$ index.php [L]
Hoffe auf eure Hilfe
Liebe Grüße
Cristal