Contao-Summit 2026

Ankündigung

Collapse
No announcement yet.

Fehlende Content-Length bei XML Sitemaps

Collapse
X
 
  • Filter
  • Zeit
  • Show
Clear All
new posts

    #16
    Zitat von Spooky Beitrag anzeigen
    Bei deinem Webserver gibt es bspw. X-WS-… Header - woher kommen die?
    Ich weiß es nicht. Hosting-Anbieter ist wie gesagt Strato. Ich verwende die Standard .htaccess Datei von Contao 5.7.6

    Comment


      #17
      Ich habe weitere Contao-Installationen bei Strato getestet. Am fehlenden Content-Length Header liegt es vermutlich nicht:

      curl -I https://domain-a.de/sitemap.xml (wird von der Google Search Console nicht erkannt)
      Code:
      HTTP/1.1 200 OK
      Content-Type: application/xml; charset=UTF-8
      Connection: keep-alive
      X-WS-Origin: available
      X-WS-RateLimit-Limit: 1000
      X-WS-RateLimit-Remaining: 999
      server: Apache
      x-frame-options: SAMEORIGIN
      x-content-digest: en6b38d81a77e31905e0ca51387a4153cc
      contao-cache: fresh
      date: Mon, 15 Jun 2026 11:00:49 GMT
      x-content-type-options: nosniff
      vary: Origin,Cookie
      x-xss-protection: 1; mode=block
      age: 957
      cache-control: public, s-maxage=2592000
      referrer-policy: no-referrer-when-downgrade, strict-origin-when-cross-origin
      strict-transport-security: max-age=31536000
      curl -I https://domain-b.de/sitemap.xml (wird von der Google Search Console erkannt)
      Code:
      HTTP/1.1 200 OK
      Content-Type: application/xml; charset=UTF-8
      Connection: keep-alive
      X-WS-Origin: available
      X-WS-RateLimit-Limit: 1000
      X-WS-RateLimit-Remaining: 999
      server: Apache
      permissions-policy: interest-cohort=()
      x-frame-options: SAMEORIGIN
      x-content-digest: en7da9646a9822f13573e3a9a4555ecce60fc8114cc5163844c261ecbd6b542283
      contao-cache: fresh
      date: Mon, 15 Jun 2026 11:00:53 GMT
      x-content-type-options: nosniff
      vary: Origin,Cookie
      x-xss-protection: 1; mode=block
      age: 437583
      cache-control: public, s-maxage=2592000
      referrer-policy: no-referrer-when-downgrade, strict-origin-when-cross-origin

      Comment


        #18
        Lösung meines Problems mit der Contao Standard sitemap.xml und der Google Search Console:

        Ich habe eine zusätzliche Sitemap mit Hilfe der Erweiterung jb-support/multiple-sitemaps erstellt.

        Diese Sitemap wurde bei Google eingereicht und sofort verarbeitet.

        Happy End

        Comment

        Working...
        X