Google indiziert avif-Bilder nicht
Arial
- webserver
0 Mitleser 2.00 Arial
Im Wurzelverzeichnis gibt es die folgende .htaccess-Datei. In den Unterverzeichnissen gibt es keine .htaccess-Datei. Woran könnte es liegen? Der ursprüngliche Domainname wurde durch "test" ersetzt.
# RewriteEngine aktivieren
RewriteEngine On
# Weiterleitung von test.ch auf www.test.ch
RewriteCond %{HTTP_HOST} ^(www\.)?test\.ch$ [NC]
RewriteRule ^(.*)$ https://www.test.ch/$1 [R=301]
# Hotlinking-Schutz ohne Google & Bing zu blockieren
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} Googlebot-Image [OR]
RewriteCond %{HTTP_USER_AGENT} Bingbot [OR]
RewriteCond %{HTTP_USER_AGENT} DuckDuckBot [OR]
RewriteCond %{HTTP_USER_AGENT} Applebot [OR]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?test\.ch [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\.[a-z]+ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?bing\.[a-z]+ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?duckduckgo\.[a-z]+ [NC]
RewriteRule \.(jpg|jpeg|gif|png|bmp|avif|webp|svg|tiff)$ - [NC,L]
# HSTS Header hinzufuegen
Header always set Strict-Transport-Security "max-age=31536000; preload"
# Referrer-Policy Header hinzufuegen
Header set Referrer-Policy "strict-origin-when-cross-origin"
# X-Content-Type-Options Header hinzufuegen
Header set X-Content-Type-Options "nosniff"
# Hotlinking-Schutz: nur erlaubte Referrer
RewriteCond %{HTTP_REFERER}
!^http://addon-wejudusicyonsite.wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER}
!^http://addon-wejudusicyonsite.wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER} !^http://test.ch/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://test.ch$ [NC]
RewriteCond %{HTTP_REFERER} !^http://wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER}
!^http://www.addon-wejudusicyonsite.wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER}
!^http://www.addon-wejudusicyonsite.wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.test.ch/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.test.ch$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER}
!^https://addon-wejudusicyonsite.wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER}
!^https://addon-wejudusicyonsite.wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER} !^https://test.ch/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://test.ch$ [NC]
RewriteCond %{HTTP_REFERER} !^https://wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER}
!^https://www.addon-wejudusicyonsite.wejudusi.cyon.site$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.test.ch/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.test.ch$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.wejudusi.cyon.site/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.wejudusi.cyon.site$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^$ [NC]
#Weiterleitung fuer gaengige Bildformate zu www.test.ch
RewriteRule .*\.(jpg|jpeg|avif)$ https://www.test.ch [L,R=301, NC]
# Optional: Weiterleitung fuer andere Bildformate zu www.test.ch
# RewriteRule .*\.(svg|tiff|webp)$ https://www.test.ch [L,R=301, NC]
# Kompression aktivieren (mod_deflate)
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-Encoding|X-Requested-With)
^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml
application/javascript application/json application/ld+json
application/manifest+json application/rdf+xml application/rss+xml
application/schema+json application/geo+json
application/vnd.ms-fontobject application/wasm application/x-font-ttf
application/x-javascript application/x-web-app-manifest+json
application/xhtml+xml application/xml font/eot font/opentype font/otf
font/ttf image/bmp image/svg+xml image/vnd.microsoft.icon image/x-icon
image/avif image/webp text/cache-manifest text/calendar text/css
text/html text/javascript text/plain text/markdown text/vcard
text/vnd.rim.location.xloc text/vtt text/x-component
text/x-cross-domain-policy text/xml"
</IfModule>
<IfModule mod_mime.c>
AddType image/avif .avif
AddEncoding gzip svgz
</IfModule>
</IfModule>
# X-Frame-Options Header hinzufuegen
Header set X-Frame-Options "DENY"
April, April oder meinst Du das ernst?
Wieso soll es sich dabei um einen Aprilscherz handeln?
Wieso soll es sich dabei um einen Aprilscherz handeln?
Aus Gründen ;-) Liefer bitte mal ein Beispiel mit einem Link zu einem fraglichem Bild, welches womöglich nicht indiziert wird. Dann könnte man anhand der Response-Header / robots.txt womöglich eine Einschätzung treffen. Die Chance, dass hier jemand Dein Szenario nachbauen wird, ist... gering. Mir zumindest fehlt dafür die Muße.