为什么谷歌索引这个? [英] Why google index this?
问题描述
在此网页中:
http://www.alvolante.it/news/pompe_benzina_%E2%80%9Ctruccate%E2%80%9D_autostrada-308391044
有这张图:
http://immagini.alvolante.it/站点/默认/文件/图像缓存/anteprima_100/images/rifornimento_benzina.jpg
如果在 robots.txt 中有Disallow:/sites/",为什么这张图片会被索引??
Why this image is indexed if in the robots.txt there is "Disallow: /sites/" ??
您可以看到此搜索已编入索引:
You can see that is indexed from this search:
推荐答案
因为域名不同(实际上是一个域和一个子域):页面来自 http://www.alvolante.it,图片来自 http://immagini.alvolante.it.
Because of the different domain names (actually a domain and a subdomain): the page is from http://www.alvolante.it and the image is from http://immagini.alvolante.it.
Robots.txt 仅在 www 域中.如果该文件也在 http://immagini.alvolante.it/ 中,则 Google 不会将该文件编入索引图像.
Robots.txt is only in the www domain. If the file would be also in http://immagini.alvolante.it/ the Google wouldn't indexed the image.
尝试访问 http://immagini.alvolante.it/sites 和 http://www.alvolante.it/sites,你会看到不同的页面.
Try to access http://immagini.alvolante.it/sites and http://www.alvolante.it/sites and you will see different pages.
这篇关于为什么谷歌索引这个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!