Ergebnis 1 bis 35 von 35

Thema: Google - WEiterleitung nur mit rechtklick

  1. #1
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard Google - WEiterleitung nur mit rechtklick

    Habe festgestellt, dass meine Events, wenn sie bei der Googlesuche gelistet werden nicht (mehr) mit Links-Klick auf die Maus geöffnet werden. Ich bzw. der User muss also rechts klicken und auf SEite im neuen Tab und kommt dann auf:

    Die von dir besuchte Seite versucht, dich an http://www.food-festivals.de/index.p...000,1470520799 weiterzuleiten.

    Falls du diese Seite nicht besuchen möchtest, kannst du zur vorherigen zurückkehren.

    Dann gehts, aber ich fürchte die wenigsten machen sich da die Mühe. Kurz: Weiß einer woran das liegt? Und was man dagegen tun kann?

    GRüße

    Sven

  2. #2
    Administratorin Avatar von lucina
    Registriert seit
    19.06.2009.
    Ort
    Kiel (DE)
    Beiträge
    7.335
    Partner-ID
    152
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Das kann ich nicht nachvollziehen. Irgendwelche so genannte Sicherheitssoftware auf Deinem Rechner installiert?

  3. #3
    Contao-Urgestein Avatar von Samson1964
    Registriert seit
    05.11.2012.
    Ort
    Berlin
    Beiträge
    2.794

    Standard

    Sowas habe ich auch schon öfter gesehen. Nenne mal einen Google-Link und welchen Treffer man anklicken muß.
    Viele Grüße
    Frank

    Seit Mai 2013 Fan von Contao
    Webmaster vom Deutschen Schachbund und Berliner Schachverband
    Mein Blog: Schachbulle
    Meine Erweiterungen bei GitHub
    Meine Videos auf YouTube: Playlist zur Contao-Programmierung/Einrichtung

  4. #4
    Contao-Urgestein Avatar von Andreas
    Registriert seit
    19.06.2009.
    Ort
    Mönchengladbach
    Beiträge
    7.703
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Die Seite ist unter mehreren Domains veröffentlicht. zB
    food-festivals.de
    food-festivals.eu
    www.food-festivals.de
    www.food-festivals.eu
    Gibt es da noch mehr? Vielleicht weiß Google jetzt nicht mehr, welche Seite es eigentlich anbieten soll.

    Das index.php in der Adresse sieht nicht gut aus. Die Seite hat viele Fehler. Das ist, was mir aufgefallen ist.
    Bitte!
    Vor Anfragen im Forum HTML validieren.
    Codesnippets hier im Froum sauber einrücken. Nur Tabs o. nur Leerzeichen verwenden.

    Vielen Dank an alle Wunschlistenerfüller
    Andreas Burg, Web Solutions

  5. #5
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Sorry, war die Tage krank und nicht am Rechner

    Ich hab Avira auf meinem Rechner. Das Problem tritt aber auch anderswo auf.

    Bei google könnte man - zum nachvollziehen - mal wurstfest von cancellara. ann kommen einige Treffer meiner Seite. Komisch auch die URL die unten angezeigt wird...

    Ja das mit dem index.php wundert mich auch. Keine Ahnung, was ich da wieder gemacht habe....

    Wenn ich übrigens auf google einie meiner Reportagen auf der SEite suche z.B. Große Küche zu kleinem Preis: Die Restaurantwoche in Valencia
    dann funktionoert alles einwandfrei - trotz imdex.php in der url...

    Grüße

    Sven

  6. #6
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Mir ist heute noch aufgefallen, dass das Problem auch auftritt, wenn den Internetexplorer nutze. bei ich Opera funktionoert alles einwandfrei. Liegts vielleicht an Firefox ?

  7. #7
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Ich kann das Problem auch nachvollziehen. zB: https://www.google.at/search?q=znaim...d-festivals.de
    Wenn man dann auf das Ergebnis klicken möchte, wird ein (GET) Request an
    Code:
    https://www.google.at/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwi5tIbBpOrRAhVIvhQKHU6fDJAQFggcMAA&url=http://www.food-festivals.de/index.php/Events/gurkenfest-in-znojmo.html?day=20160805&times=1470348000,1470520799&usg=AFQjCNE-nUVGzrU3h0zec3Kmbc9YcK0IJA&sig2=fXzqImwvUfdYFFKHEKlVZA
    gesendet, der dann folgenden Response liefert
    HTML-Code:
    <html lang="en-AT"><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Redirect Notice</title><style>body,div,a{font-family:arial,sans-serif}body{background-color:#fff;margin-top:3px}div{color:#000}a:link{color:#00c}a:visited{color:#551a8b}a:active{color:red}div._lFe{border-top:1px solid #bbb;border-bottom:1px solid #bbb;background:#f2f2f2;margin-top:1em;width:100%}div._kFe{padding:0.5em 0;margin-left:10px}div._jFe{margin-left:35px;margin-top:35px}</style><script>function go_back(){window.history.go(-1);return false;}
    
    function ctu(oi,ct){var link = document && document.referrer;var esc_link = "";var e = window && window.encodeURIComponent ?encodeURIComponent :escape;if (link){esc_link = e(link);}
    new Image().src = "/url?sa=T&url=" + esc_link + "&oi=" + e(oi)+ "&ct=" + e(ct);return false;}
    </script></head><body><div class="_lFe"><div class="_kFe"><font style="font-size:larger"><b>Redirect Notice</b></font></div></div><div class="_jFe">&nbsp;The page you were on is trying to send you to <a href="http://www.food-festivals.de/index.php/Events/gurkenfest-in-znojmo.html?day=20160805&amp;times=1470348000,1470520799">http://www.food-festivals.de/index.php/Events/gurkenfest-in-znojmo.html?day=20160805&amp;times=1470348000,1470520799</a>.<br><br>&nbsp;If you do not want to visit that page, you can <a href="#" onclick="return go_back();" onmousedown="ctu('unauthorizedredirect','originlink');">return to the previous page</a>.<br><br><br></div></body></html>

    Aktiviere zuerst mal unter System » Einstellungen » Frontend-Einstellungen die Option URLs umschreiben.

  8. #8
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Danke spooky,

    weil ich mir schon das eine oder andere mal die Seite zerschossen habe: Erst URL umschreiben aktivieren und an htacess umbenennen? oder ist da egal? Und: Was heißt "gegebenfall rewritebase anpassen?

  9. #9
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Zitat Zitat von sven_rahn Beitrag anzeigen
    weil ich mir schon das eine oder andere mal die Seite zerschossen habe: Erst URL umschreiben aktivieren und an htacess umbenennen? oder ist da egal?
    Wenn du zuerst die Option setzt und erst dann die .htaccess aktivierst, dann funktionieren keine Seitenlinks mehr in diesem Zeitraum, im Frontend. Also vom Zeitpunkt der Aktivierung der Einstellung in den Systemeinstellungen bis zum Zeitpunkt der Aktivierung der .htaccess.



    Zitat Zitat von sven_rahn Beitrag anzeigen
    Was heißt "gegebenfall rewritebase anpassen?
    In der .htaccess befindet sich die Anweisung
    Code:
    RewriteBase /
    Wenn sich deine Website in einem Unterordner (relativ zum DocumentRoot) befindet, dann musst du diesen Ordner dort angeben. Das entspricht dann dem selben Ordner, der dann auch in der pathconfig.php steht (welche automatisch vom Install Tool gesetzt wird).

  10. #10
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Alsu URLs umgeschrieben. Seite noch da = also scheints zu funktinoieren. Bei google ist immernoch das index.php ergo wird die Seite nun garnicht mehr gefunden. Kann es sein, dass die das nicht sofort schnallen?
    Oder muss ich noch was machen?

  11. #11
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    htaccess.default löschen z.B.?
    hab ja jetzt zwei htaccess und
    htaccess.default...

  12. #12
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Zitat Zitat von sven_rahn Beitrag anzeigen
    Kann es sein, dass die das nicht sofort schnallen?
    Natürlich geht das nicht sofort, Google muss deine Seite ja erst mal neu Crawlen. Beschleunigen kannst du das, indem du über die Google Webmaster Tools die von Contao generierte Sitemap einreichst.

    Du könntest außerdem einen Redirect für die alten URLs mit "index.php" einrichten.
    Geändert von Spooky (30.01.2017 um 19:48 Uhr)

  13. #13
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Davon abgesehen solltest du die HTML Fehler beseiten. Darüberhinaus ist es ein wenig unüblich, dass die Seite http://www.food-festivals.de/Events.html mit einem großen "E" geschrieben ist. Spielt zwar keine große Rolle, ist aber zumindest mit deiner restlichen Seite inkonsistent .

  14. #14
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Dann mal wieder danke für die Hilfe - und den Hinweis mit dem Event. Die HTML-Fehler schau ich mir an...

    schönen abend

  15. #15
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Verzweifel!!!

    Dachte ich hätte jetzt alles richtig gemacht:

    in der htaccess folgende Änderungen:

    RewriteCond %{HTTP_HOST} ^food-festivals.de\.de$
    RewriteRule ^(.*)$ http://www.food-festivals.de/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^food-festivals.eu\.eu$
    RewriteRule ^(.*)$ http://www.food-festivals.eu/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} !www\.food-festivals\.de$ [NC]
    RewriteRule ^(.*)$ http://www\.food-festivals\.de/$1 [R=301,L]
    Redirect 301 /Events.html http://www.food-festivals.de/events.html
    Redirect 301 /Events.html http://www.food-festivals.eu/events.html
    Redirect 301 /Routen.html http://www.food-festivals.de/routen.html
    Redirect 301 /Routen.html http://www.food-festivals.eu/routen.html
    RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2


    Google gibt als Treffer immer noch mal

    food-festivals.de
    food-festivals.eu
    www.food-festivals.de
    www.food-festivals.eu

    der index.php wir mal umgeleitet
    mal nicht - und dann findet google die Seite nicht

    mal funktioniert der Linksklick, mal nicht - und die Weiterleitungsseite geht auch ins Leere, das Sie ja na index.php sucht

    Nachvollziehbar, wenn ihr wurstfest cancellara bei google eingebt.

    was hab ich falsch gemacht?

  16. #16
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Diese Änderungen sind natürlich nicht sofort bei Google sichtbar. Das kann einige Zeit dauern. Beschleunigen kannst du das, in dem du die aktuelle Sitemap bei den Google Webmaster Tools einreichst, wie schon zuvor erwähnt.

    Darüberhinaus hast du zumindest noch einen Weiterleitungsfehler drin.

    http://food-festivals.de/events.html wird auf http://www.food-festivals.de/index.php weitergeleitet, anstatt auf http://www.food-festivals.de/events.html

  17. #17
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Zitat Zitat von sven_rahn Beitrag anzeigen
    Nachvollziehbar, wenn ihr wurstfest cancellara bei google eingebt.
    Bei diesem Begriff taucht folgende URL in den Ergebnissen auf:


    Diese URL hat aber einen permanenten Redirect auf


    Und unter dieser URL kommt es zu einem 404 Fehler.


    Du solltest alle deine Weiterleitungen und Server Konfigurationen und URLs nochmal selbst überprüfen.
    Geändert von Spooky (05.02.2017 um 09:51 Uhr)

  18. #18
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    DAnke Spooky

    aber ich schnalz immer noch nicht. Bevor ich jetzt ein Kleinauftrag ins Forum setze, noch ein Versuch es selber - mit eurer Hilfe - zu beheben:

    Die neue Sitemap ist gestern abend bei Google verarbeitet - da müssten die Änderungen doch jetzt greifen?

    Darüberhinaus hast du zumindest noch einen Weiterleitungsfehler drin.

    http://food-festivals.de/events.html wird auf http://www.food-festivals.de/index.php weitergeleitet, anstatt auf http://www.food-festivals.de/events.html

    Ich dachte, genau das hab ich hiermit verbessert: RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2

    Google leitet jetzt - angeblich - von index.php/Events.html und Events.html - (nach events.html) siehe jpggoogle analyse.JPG
    (muss ich da eigentlich die Indexierung beantragen?)

    das scheint aber nicht auf die Unterseiten, sprich auf den Eventkalender zu greifen ??

    grüße

    sven

  19. #19
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Zitat Zitat von sven_rahn Beitrag anzeigen
    Die neue Sitemap ist gestern abend bei Google verarbeitet - da müssten die Änderungen doch jetzt greifen?
    Nein, wann Google deine Seite neu indiziert liegt im ermessen von Google.


    Zitat Zitat von sven_rahn Beitrag anzeigen
    Darüberhinaus hast du zumindest noch einen Weiterleitungsfehler drin.

    http://food-festivals.de/events.html wird auf http://www.food-festivals.de/index.php weitergeleitet, anstatt auf http://www.food-festivals.de/events.html

    Ich dachte, genau das hab ich hiermit verbessert: RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2
    1. greift diese Regel nur bei URLs die http://www.food-festivals.de/index.php/… lauten und nicht bei URLs die http://www.food-festivals.de/index.php lauten
    2. hast du das Problem falsch verstanden. Irgendetwas verursacht einen Redirect von http://food-festivals.de/events.html auf http://www.food-festivals.de/index.php. Dieser Redirect ist natürlich falsch, den musst du beheben.


    Den Redirect Fehler mit http://www.food-festivals.eu/events/...400,1486249199 hast du schon behoben. Der leitet jetzt korrekt auf http://www.food-festivals.de/events/...400,1486249199 weiter.

  20. #20
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    hast du das Problem falsch verstanden. Irgendetwas verursacht einen Redirect von http://food-festivals.de/events.html auf http://www.food-festivals.de/index.php. Dieser Redirect ist natürlich falsch, den musst du beheben.

    Ich kann einfach nicht erkennen, wo dieser falsche Redirect verursacht wird. Sämtliche Umschreibungs und Weiterleitungsanweisungen meiner htaccess sind hier:
    RewriteEngine On
    RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2
    RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
    RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]
    RewriteCond %{HTTP_HOST} ^food-festivals.de\.de$
    RewriteRule ^(.*)$ http://www.food-festivals.de/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^food-festivals.eu\.eu$
    RewriteRule ^(.*)$ http://www.food-festivals.eu/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} !www\.food-festivals\.de$ [NC]
    RewriteRule ^(.*)$ http://www\.food-festivals\.de/$1 [R=301,L]
    RedirectMatch 301 /Events.html /events.html$1
    Redirect 301 /Events.html http://www.food-festivals.de/events.html
    Redirect 301 /Events.html http://www.food-festivals.eu/events.html
    Redirect 301 /Routen.html http://www.food-festivals.de/routen.html
    Redirect 301 /Routen.html http://www.food-festivals.eu/routen.html

    Welche verursacht die falsche Umleitung? Bitte nochmal um Hilfe!

    By the way: Hab in einem Forum gelesen, dass man möglicht nur eine Umleitung schreiben soll und googlebot spätestens die dritte ignoriert ??

  21. #21
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Poste deine gesamte .htaccess

  22. #22
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    DAnke!!
    Änderungen hab ich ganz ans Ende gesetzt...



    ##
    # Contao Open Source CMS
    #
    # Copyright (c) 2005-2015 Leo Feyer
    #
    # @license LGPL-3.0+
    ##

    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </FilesMatch>

    ##
    # Allow access from all domains for webfonts
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$">
    Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    </IfModule>

    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    <IfModule mod_headers.c>
    Header unset ETag
    </IfModule>

    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
    AddType application/javascript js jsonp
    AddType application/json json
    AddType audio/ogg oga ogg
    AddType audio/mp4 m4a f4a f4b
    AddType video/ogg ogv
    AddType video/mp4 mp4 m4v f4v f4p
    AddType video/webm webm
    AddType video/x-flv flv
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
    AddType application/vnd.ms-fontobject eot
    AddType application/x-font-ttf ttf ttc
    AddType font/opentype otf
    AddType application/x-font-woff woff woff2
    AddType image/x-icon ico
    AddType image/webp webp
    AddType text/cache-manifest appcache manifest
    AddType text/x-component htc
    AddType application/xml rss atom xml rdf
    AddType application/x-web-app-manifest+json webapp
    AddType text/x-vcard vcf
    AddType application/x-shockwave-flash swf
    </IfModule>

    ##
    # Gzip compression
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_deflate.c>
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
    AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
    </IfModule>
    </IfModule>

    ##
    # Expires headers (for better cache control)
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_expires.c>
    ExpiresActive on

    ##
    # Productional website
    ##
    ExpiresByType text/cache-manifest "access plus 0 seconds"
    ExpiresByType text/html "access plus 0 seconds"
    ExpiresByType text/xml "access plus 0 seconds"
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType application/json "access plus 0 seconds"
    ExpiresByType application/rss+xml "access plus 1 hour"
    ExpiresByType application/atom+xml "access plus 1 hour"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 month"
    ExpiresByType video/ogg "access plus 1 month"
    ExpiresByType audio/ogg "access plus 1 month"
    ExpiresByType video/mp4 "access plus 1 month"
    ExpiresByType video/webm "access plus 1 month"
    ExpiresByType text/x-component "access plus 1 month"
    ExpiresByType application/x-font-ttf "access plus 1 month"
    ExpiresByType font/opentype "access plus 1 month"
    ExpiresByType application/x-font-woff "access plus 1 month"
    ExpiresByType image/svg+xml "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"

    ##
    # Disable caching during development
    # @see https://github.com/contao/core/issues/4364
    ##
    #ExpiresByType text/cache-manifest "access"
    #ExpiresByType text/html "access"
    #ExpiresByType text/xml "access"
    #ExpiresByType application/xml "access"
    #ExpiresByType application/json "access"
    #ExpiresByType application/rss+xml "access"
    #ExpiresByType application/atom+xml "access"
    #ExpiresByType image/gif "access"
    #ExpiresByType image/png "access"
    #ExpiresByType image/jpeg "access"
    #ExpiresByType image/x-icon "access"
    #ExpiresByType video/ogg "access"
    #ExpiresByType audio/ogg "access"
    #ExpiresByType video/mp4 "access"
    #ExpiresByType video/webm "access"
    #ExpiresByType text/x-component "access"
    #ExpiresByType application/x-font-ttf "access"
    #ExpiresByType font/opentype "access"
    #ExpiresByType application/x-font-woff "access"
    #ExpiresByType image/svg+xml "access"
    #ExpiresByType application/vnd.ms-fontobject "access"
    #ExpiresByType text/css "access"
    #ExpiresByType application/javascript "access"

    </IfModule>

    ##
    # Header adjustments
    ##
    <IfModule mod_headers.c>

    ##
    # Disable caching during development
    # @see https://github.com/contao/core/issues/4364
    ##
    #Header unset Cache-Control
    #Header append Cache-Control must-revalidate

    ##
    # Do not cache the cron.txt file
    # @see https://github.com/contao/core/issues/5105
    ##
    <FilesMatch "cron\.txt$">
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
    </FilesMatch>

    ##
    # Add a Vary Accept-Encoding header for the compressed resources. If you
    # modify the file types above, make sure to change them here accordingly.
    # @see http://developer.yahoo.com/performance/rules.html#gzip
    #
    # Note: If you are using a case-sensitive file system like HFS+ or ext4, you
    # have to change the <FilesMatch> directive as follows:
    #
    # <FilesMatch "\.(?i:js|css|xml|gz|svgz)$">
    #
    # For more information see: https://github.com/contao/core/issues/4364
    ##
    <FilesMatch "\.(js|css|xml|gz|svgz)$">
    Header append Vary Accept-Encoding
    </FilesMatch>

    </IfModule>

    ##
    # Disable MultiViews if you are having issues with requests returning the wrong
    # page. Requires AllowOverride Options=All,MultiViews to be set here.
    # @see https://github.com/contao/core/issues/3521
    ##
    #Options -MultiViews

    ##
    # URL rewriting
    ##
    <IfModule mod_rewrite.c>


    ##
    # Change the RewriteBase if your Contao installation is in a subdirectoy and
    # the rewrite rules are not working properly. Usage examples:
    #
    # RewriteBase /contao-3.0.0
    # RewriteBase /path/to/contao
    #
    # Depending on your server, you might have to remove the line entirely.
    ##
    RewriteBase /

    ##
    # Uncomment the following lines to add "www." to the domain:
    #
    # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    # RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    #
    # Uncomment the following lines to remove "www." from the domain:
    ##

    RewriteCond %{HTTP_HOST} ^www\food-festivals.de\.com$ [NC]
    RewriteRule (.*) http://food-festivals.de/$1 [R=301,L]

    # Make sure to replace "example.com" with your domain name.
    ##

    ##
    # If you cannot use mod_deflate, uncomment the following lines to load a
    # compressed .gz version of the aggregated Contao JavaScript and CSS files.
    ##
    #AddEncoding gzip .gz
    #<FilesMatch "\.js\.gz$">
    # AddType "application/javascript" .gz
    #</FilesMatch>
    #<FilesMatch "\.css\.gz$">
    # AddType "text/css" .gz
    #</FilesMatch>
    #RewriteCond %{HTTP:Accept-encoding} gzip
    #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
    #RewriteCond %{REQUEST_FILENAME}.gz -f
    #RewriteRule ^(.*)$ $1.gz [QSA,L]

    ##
    # 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} !-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|map|htc|png|gif|jpe?g|ico|xml|c sv|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.
    ##

    RewriteEngine On
    RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2
    RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
    RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]
    RewriteCond %{HTTP_HOST} ^food-festivals.de\.de$
    RewriteRule ^(.*)$ http://www.food-festivals.de/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^food-festivals.eu\.eu$
    RewriteRule ^(.*)$ http://www.food-festivals.eu/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} !www\.food-festivals\.de$ [NC]
    RewriteRule ^(.*)$ http://www\.food-festivals\.de/$1 [R=301,L]
    RedirectMatch 301 /Events.html /events.html$1
    Redirect 301 /Events.html http://www.food-festivals.de/events.html
    Redirect 301 /Events.html http://www.food-festivals.eu/events.html
    Redirect 301 /Routen.html http://www.food-festivals.de/routen.html
    Redirect 301 /Routen.html http://www.food-festivals.eu/routen.html



    </IfModule>

  23. #23
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Bitte verwende [code] und [quote] Tags.

    Das Problem ist wahrscheinlich, dass du RewriteRules von Contao mit deinen eigenen vermischt hast. Außerdem fehlt bei dir das RewritEngine On. Stelle die original .htaccess.default von Contao wieder her und füge deine eigenen RewriteRules bspw. nach
    Code:
    ##
    # Uncomment the following lines to add "www." to the domain:
    #
    # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    # RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    #
    # Uncomment the following lines to remove "www." from the domain:
    ##
    ein (ohne RewriteEngine On).

    Deine Redirect bzw. RedirectMatch Direktiven kannst du ganz an das Ende der .htaccess stellen, also nach </IfModule>.

  24. #24
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Habe alte htaccess wieder hergestellt und die Änderungen - wie von dir beschrieben - eingefummelt. Ergebnis war aber leider, dass die Seite,bis auf die Startseite, gar nicht mehr erreichbar war. Deshalb wieder die neue htaccess aktiviert.
    Ich danke dir für deine Bemühungen!!
    Sven

  25. #25
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Poste die Original .htaccess.default mit deinen Änderungen.

  26. #26
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Code:
    ##
    # Contao Open Source CMS
    #
    # Copyright (c) 2005-2015 Leo Feyer
    #
    # @license LGPL-3.0+
    ##
    
    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
      <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
      </IfModule>
      <IfModule mod_authz_core.c>
        Require all denied
      </IfModule>
    </FilesMatch>
    
    ##
    # Allow access from all domains for webfonts
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>
    
    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    <IfModule mod_headers.c>
      Header unset ETag
    </IfModule>
    
    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
      AddType application/javascript              js jsonp
      AddType application/json                    json
      AddType audio/ogg                           oga ogg
      AddType audio/mp4                           m4a f4a f4b
      AddType video/ogg                           ogv
      AddType video/mp4                           mp4 m4v f4v f4p
      AddType video/webm                          webm
      AddType video/x-flv                         flv
      AddType image/svg+xml                       svg svgz
      AddEncoding gzip                            svgz
      AddType application/vnd.ms-fontobject       eot
      AddType application/x-font-ttf              ttf ttc
      AddType font/opentype                       otf
      AddType application/x-font-woff             woff woff2
      AddType image/x-icon                        ico
      AddType image/webp                          webp
      AddType text/cache-manifest                 appcache manifest
      AddType text/x-component                    htc
      AddType application/xml                     rss atom xml rdf
      AddType application/x-web-app-manifest+json webapp
      AddType text/x-vcard                        vcf
      AddType application/x-shockwave-flash       swf
    </IfModule>
    
    ##
    # Gzip compression
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_deflate.c>
      <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
        AddOutputFilterByType DEFLATE application/javascript
        AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
        AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
        AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
      </IfModule>
    </IfModule>
    
    ##
    # Expires headers (for better cache control)
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_expires.c>
      ExpiresActive on
    
      ##
      # Productional website
      ##
      ExpiresByType text/cache-manifest           "access plus 0 seconds"
      ExpiresByType text/html                     "access plus 0 seconds"
      ExpiresByType text/xml                      "access plus 0 seconds"
      ExpiresByType application/xml               "access plus 0 seconds"
      ExpiresByType application/json              "access plus 0 seconds"
      ExpiresByType application/rss+xml           "access plus 1 hour"
      ExpiresByType application/atom+xml          "access plus 1 hour"
      ExpiresByType image/gif                     "access plus 1 month"
      ExpiresByType image/png                     "access plus 1 month"
      ExpiresByType image/jpeg                    "access plus 1 month"
      ExpiresByType image/x-icon                  "access plus 1 month"
      ExpiresByType video/ogg                     "access plus 1 month"
      ExpiresByType audio/ogg                     "access plus 1 month"
      ExpiresByType video/mp4                     "access plus 1 month"
      ExpiresByType video/webm                    "access plus 1 month"
      ExpiresByType text/x-component              "access plus 1 month"
      ExpiresByType application/x-font-ttf        "access plus 1 month"
      ExpiresByType font/opentype                 "access plus 1 month"
      ExpiresByType application/x-font-woff       "access plus 1 month"
      ExpiresByType image/svg+xml                 "access plus 1 month"
      ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
      ExpiresByType text/css                      "access plus 1 year"
      ExpiresByType application/javascript        "access plus 1 year"
    
      ##
      # Disable caching during development
      # @see https://github.com/contao/core/issues/4364
      ##
      #ExpiresByType text/cache-manifest           "access"
      #ExpiresByType text/html                     "access"
      #ExpiresByType text/xml                      "access"
      #ExpiresByType application/xml               "access"
      #ExpiresByType application/json              "access"
      #ExpiresByType application/rss+xml           "access"
      #ExpiresByType application/atom+xml          "access"
      #ExpiresByType image/gif                     "access"
      #ExpiresByType image/png                     "access"
      #ExpiresByType image/jpeg                    "access"
      #ExpiresByType image/x-icon                  "access"
      #ExpiresByType video/ogg                     "access"
      #ExpiresByType audio/ogg                     "access"
      #ExpiresByType video/mp4                     "access"
      #ExpiresByType video/webm                    "access"
      #ExpiresByType text/x-component              "access"
      #ExpiresByType application/x-font-ttf        "access"
      #ExpiresByType font/opentype                 "access"
      #ExpiresByType application/x-font-woff       "access"
      #ExpiresByType image/svg+xml                 "access"
      #ExpiresByType application/vnd.ms-fontobject "access"
      #ExpiresByType text/css                      "access"
      #ExpiresByType application/javascript        "access"
    
    </IfModule>
    
    ##
    # Header adjustments
    ##
    <IfModule mod_headers.c>
    
      ##
      # Disable caching during development
      # @see https://github.com/contao/core/issues/4364
      ##
      #Header unset Cache-Control
      #Header append Cache-Control must-revalidate
    
      ##
      # Do not cache the cron.txt file
      # @see https://github.com/contao/core/issues/5105
      ##
      <FilesMatch "cron\.txt$">
        Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
      </FilesMatch>
    
      ##
      # Add a Vary Accept-Encoding header for the compressed resources. If you
      # modify the file types above, make sure to change them here accordingly.
      # @see http://developer.yahoo.com/performance/rules.html#gzip
      #
      # Note: If you are using a case-sensitive file system like HFS+ or ext4, you
      # have to change the <FilesMatch> directive as follows:
      #
      # <FilesMatch "\.(?i:js|css|xml|gz|svgz)$">
      #
      # For more information see: https://github.com/contao/core/issues/4364
      ##
      <FilesMatch "\.(js|css|xml|gz|svgz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    
    </IfModule>
    
    ##
    # Disable MultiViews if you are having issues with requests returning the wrong
    # page. Requires AllowOverride Options=All,MultiViews to be set here.
    # @see https://github.com/contao/core/issues/3521
    ##
    #Options -MultiViews
    
    ##
    # URL rewriting
    ##
    <IfModule mod_rewrite.c>
      RewriteEngine On
    
      ##
      # Change the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-3.0.0
      #   RewriteBase /path/to/contao
      #
      # Depending on your server, you might have to remove the line entirely.
      ##
      RewriteBase /
    
      ##
      # Uncomment the following lines to add "www." to the domain:
      #
      #   RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
      #   RewriteRule (.*) http://www.example.com/$1 [R=301,L]
      #
      # Uncomment the following lines to remove "www." from the domain:
      #
    
    
      #   RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
      #   RewriteRule (.*) http://example.com/$1 [R=301,L]
      #
      # Make sure to replace "example.com" with your domain name.
      ##
    RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
    RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]
    RewriteCond %{HTTP_HOST} ^food-festivals.de\.de$
    RewriteRule ^(.*)$ http://www.food-festivals.de/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^food-festivals.eu\.eu$
    RewriteRule ^(.*)$ http://www.food-festivals.eu/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} !www\.food-festivals\.de$ [NC]
    RewriteRule ^(.*)$ http://www\.food-festivals\.de/$1 [R=301,L]
      ##
      # If you cannot use mod_deflate, uncomment the following lines to load a
      # compressed .gz version of the aggregated Contao JavaScript and CSS files.
      ##
      #AddEncoding gzip .gz
      #<FilesMatch "\.js\.gz$">
      #  AddType "application/javascript" .gz
      #</FilesMatch>
      #<FilesMatch "\.css\.gz$">
      #  AddType "text/css" .gz
      #</FilesMatch>
      #RewriteCond %{HTTP:Accept-encoding} gzip
      #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
      #RewriteCond %{REQUEST_FILENAME}.gz -f
      #RewriteRule ^(.*)$ $1.gz [QSA,L]
    
      ##
      # 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} !-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|map|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]
    
    </IfModule>
    
    RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2
    RedirectMatch 301 /Events.html /events.html$1
    Redirect 301 /Events.html http://www.food-festivals.de/events.html
    Redirect 301 /Events.html http://www.food-festivals.eu/events.html
    Redirect 301 /Routen.html http://www.food-festivals.de/routen.html
    Redirect 301 /Routen.html http://www.food-festivals.eu/routen.html

  27. #27
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Hier ist dein Fehler:
    Code:
      #   RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
      #   RewriteRule (.*) http://example.com/$1 [R=301,L]
      #
      # Make sure to replace "example.com" with your domain name.
      ##
    RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
    RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]
    RewriteCond %{HTTP_HOST} ^food-festivals.de\.de$
    RewriteRule ^(.*)$ http://www.food-festivals.de/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^food-festivals.eu\.eu$
    RewriteRule ^(.*)$ http://www.food-festivals.eu/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} !www\.food-festivals\.de$ [NC]
    RewriteRule ^(.*)$ http://www\.food-festivals\.de/$1 [R=301,L]
    Die Zeilen
    Code:
    RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
    RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]
    stammen von Contao und du hast sie irrtümlich mit kopiert.



    Nebenanmerkung: deine .htaccess ist nicht zu 100% aktuell mit der neuesten Contao Version.

  28. #28
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Ai.
    Die zwei Zeilen kommen ja ganz unten auch nochmal vor: Beide male löschen oder nur einmal?

  29. #29
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Zitat Zitat von sven_rahn Beitrag anzeigen
    Die zwei Zeilen kommen ja ganz unten auch nochmal vor: Beide male löschen oder nur einmal?
    Natürlich nur einmal. Den Original Zustand der .htaccess.default sollst du ja belassen .

  30. #30
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Gesicht zeigt die Zunge

    Not Found

    The requested URL /reportagen.html was not found on this server.

    ist die Antwort...

  31. #31
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Poste nochmal deine gesamte .htaccess

  32. #32
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Code:
    ##
    # Contao Open Source CMS
    #
    # Copyright (c) 2005-2015 Leo Feyer
    #
    # @license LGPL-3.0+
    ##
    
    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
      <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
      </IfModule>
      <IfModule mod_authz_core.c>
        Require all denied
      </IfModule>
    </FilesMatch>
    
    ##
    # Allow access from all domains for webfonts
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>
    
    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    <IfModule mod_headers.c>
      Header unset ETag
    </IfModule>
    
    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
      AddType application/javascript              js jsonp
      AddType application/json                    json
      AddType audio/ogg                           oga ogg
      AddType audio/mp4                           m4a f4a f4b
      AddType video/ogg                           ogv
      AddType video/mp4                           mp4 m4v f4v f4p
      AddType video/webm                          webm
      AddType video/x-flv                         flv
      AddType image/svg+xml                       svg svgz
      AddEncoding gzip                            svgz
      AddType application/vnd.ms-fontobject       eot
      AddType application/x-font-ttf              ttf ttc
      AddType font/opentype                       otf
      AddType application/x-font-woff             woff woff2
      AddType image/x-icon                        ico
      AddType image/webp                          webp
      AddType text/cache-manifest                 appcache manifest
      AddType text/x-component                    htc
      AddType application/xml                     rss atom xml rdf
      AddType application/x-web-app-manifest+json webapp
      AddType text/x-vcard                        vcf
      AddType application/x-shockwave-flash       swf
    </IfModule>
    
    ##
    # Gzip compression
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_deflate.c>
      <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
        AddOutputFilterByType DEFLATE application/javascript
        AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
        AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
        AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
      </IfModule>
    </IfModule>
    
    ##
    # Expires headers (for better cache control)
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_expires.c>
      ExpiresActive on
    
      ##
      # Productional website
      ##
      ExpiresByType text/cache-manifest           "access plus 0 seconds"
      ExpiresByType text/html                     "access plus 0 seconds"
      ExpiresByType text/xml                      "access plus 0 seconds"
      ExpiresByType application/xml               "access plus 0 seconds"
      ExpiresByType application/json              "access plus 0 seconds"
      ExpiresByType application/rss+xml           "access plus 1 hour"
      ExpiresByType application/atom+xml          "access plus 1 hour"
      ExpiresByType image/gif                     "access plus 1 month"
      ExpiresByType image/png                     "access plus 1 month"
      ExpiresByType image/jpeg                    "access plus 1 month"
      ExpiresByType image/x-icon                  "access plus 1 month"
      ExpiresByType video/ogg                     "access plus 1 month"
      ExpiresByType audio/ogg                     "access plus 1 month"
      ExpiresByType video/mp4                     "access plus 1 month"
      ExpiresByType video/webm                    "access plus 1 month"
      ExpiresByType text/x-component              "access plus 1 month"
      ExpiresByType application/x-font-ttf        "access plus 1 month"
      ExpiresByType font/opentype                 "access plus 1 month"
      ExpiresByType application/x-font-woff       "access plus 1 month"
      ExpiresByType image/svg+xml                 "access plus 1 month"
      ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
      ExpiresByType text/css                      "access plus 1 year"
      ExpiresByType application/javascript        "access plus 1 year"
    
      ##
      # Disable caching during development
      # @see https://github.com/contao/core/issues/4364
      ##
      #ExpiresByType text/cache-manifest           "access"
      #ExpiresByType text/html                     "access"
      #ExpiresByType text/xml                      "access"
      #ExpiresByType application/xml               "access"
      #ExpiresByType application/json              "access"
      #ExpiresByType application/rss+xml           "access"
      #ExpiresByType application/atom+xml          "access"
      #ExpiresByType image/gif                     "access"
      #ExpiresByType image/png                     "access"
      #ExpiresByType image/jpeg                    "access"
      #ExpiresByType image/x-icon                  "access"
      #ExpiresByType video/ogg                     "access"
      #ExpiresByType audio/ogg                     "access"
      #ExpiresByType video/mp4                     "access"
      #ExpiresByType video/webm                    "access"
      #ExpiresByType text/x-component              "access"
      #ExpiresByType application/x-font-ttf        "access"
      #ExpiresByType font/opentype                 "access"
      #ExpiresByType application/x-font-woff       "access"
      #ExpiresByType image/svg+xml                 "access"
      #ExpiresByType application/vnd.ms-fontobject "access"
      #ExpiresByType text/css                      "access"
      #ExpiresByType application/javascript        "access"
    
    </IfModule>
    
    ##
    # Header adjustments
    ##
    <IfModule mod_headers.c>
    
      ##
      # Disable caching during development
      # @see https://github.com/contao/core/issues/4364
      ##
      #Header unset Cache-Control
      #Header append Cache-Control must-revalidate
    
      ##
      # Do not cache the cron.txt file
      # @see https://github.com/contao/core/issues/5105
      ##
      <FilesMatch "cron\.txt$">
        Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
      </FilesMatch>
    
      ##
      # Add a Vary Accept-Encoding header for the compressed resources. If you
      # modify the file types above, make sure to change them here accordingly.
      # @see http://developer.yahoo.com/performance/rules.html#gzip
      #
      # Note: If you are using a case-sensitive file system like HFS+ or ext4, you
      # have to change the <FilesMatch> directive as follows:
      #
      # <FilesMatch "\.(?i:js|css|xml|gz|svgz)$">
      #
      # For more information see: https://github.com/contao/core/issues/4364
      ##
      <FilesMatch "\.(js|css|xml|gz|svgz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    
    </IfModule>
    
    ##
    # Disable MultiViews if you are having issues with requests returning the wrong
    # page. Requires AllowOverride Options=All,MultiViews to be set here.
    # @see https://github.com/contao/core/issues/3521
    ##
    #Options -MultiViews
    
    ##
    # URL rewriting
    ##
    <IfModule mod_rewrite.c>
      RewriteEngine On
    
      ##
      # Change the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-3.0.0
      #   RewriteBase /path/to/contao
      #
      # Depending on your server, you might have to remove the line entirely.
      ##
      RewriteBase /
    
      ##
      # Uncomment the following lines to add "www." to the domain:
      #
      #   RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
      #   RewriteRule (.*) http://www.example.com/$1 [R=301,L]
      #
      # Uncomment the following lines to remove "www." from the domain:
      #
    
    
      #   RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
      #   RewriteRule (.*) http://example.com/$1 [R=301,L]
      #
      # Make sure to replace "example.com" with your domain name.
      ##
    RewriteCond %{HTTP_HOST} ^food-festivals.de\.de$
    RewriteRule ^(.*)$ http://www.food-festivals.de/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} ^food-festivals.eu\.eu$
    RewriteRule ^(.*)$ http://www.food-festivals.eu/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} !www\.food-festivals\.de$ [NC]
    RewriteRule ^(.*)$ http://www\.food-festivals\.de/$1 [R=301,L]
      ##
      # If you cannot use mod_deflate, uncomment the following lines to load a
      # compressed .gz version of the aggregated Contao JavaScript and CSS files.
      ##
      #AddEncoding gzip .gz
      #<FilesMatch "\.js\.gz$">
      #  AddType "application/javascript" .gz
      #</FilesMatch>
      #<FilesMatch "\.css\.gz$">
      #  AddType "text/css" .gz
      #</FilesMatch>
      #RewriteCond %{HTTP:Accept-encoding} gzip
      #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
      #RewriteCond %{REQUEST_FILENAME}.gz -f
      #RewriteRule ^(.*)$ $1.gz [QSA,L]
    
      ##
      # 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} !-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|map|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]
    
    </IfModule>
    
    RedirectMatch 301 ^(.*)/index.php/(.*) $1/$2
    RedirectMatch 301 /Events.html /events.html$1
    Redirect 301 /Events.html http://www.food-festivals.de/events.html
    Redirect 301 /Events.html http://www.food-festivals.eu/events.html
    Redirect 301 /Routen.html http://www.food-festivals.de/routen.html
    Redirect 301 /Routen.html http://www.food-festivals.eu/routen.html

  33. #33
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Momentan kann ich keinen Fehler in der .htaccess feststellen.

  34. #34
    Contao-Nutzer
    Registriert seit
    03.10.2010.
    Beiträge
    192

    Standard

    Danke. DAnn tausche ich wieder, dann ist die Seite wenigstens erreichbar...

    Grüße

    Sven

  35. #35
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.130
    Partner-ID
    10107

    Standard

    Ich würde an deiner Stelle die Original .htaccess.default wieder herstellen, ohne dass du deine eigenen Redirects einfügst.

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •