通过 php 告诉使用 if 语句和搜索引擎蜘蛛进行重定向?
我的网站几乎所有页面都是用户访问的,如果不是用户且未登录,他们根本无法访问这些页面。
搜索引擎蜘蛛是否仍然能够列出、抓取和索引这些用户页面,因为他们不会登录?
有没有更好的方法使用这个系统来获得更好的索引?
Almost all of my web sites pages are user accessed and if not a user and not logged in they cannot access the pages at all.
Will the search engine spiders still be able to list, crawl and index these user pages as they won't be logging in?
Is there a better way using this system of getting better indexing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您有与用户无关的内容,并且希望搜索引擎对其进行抓取,您应该允许他们无需登录即可访问该内容。
If you have non-user related content and you want search engines to crawl it you should enable them accessing it without login.
蜘蛛不会登录,所以它看不到受保护的页面。您也不应该尝试让这些页面对蜘蛛可见,而不是对未登录的访问者可见,搜索引擎会因此对您的网站进行处罚,甚至停止为其建立索引。
不过,您可以向未登录的用户显示页面的摘录,例如前 X 个单词。爬行页面的蜘蛛将能够读取该文本。
A spider doesn't login, so no, it can't see protected pages. You should also not try to make those pages visible to spiders and not to visitors who are not logged in, search engines will put a penalty on your site for that or even stop indexing it.
You could however show an excerpt of the page to users who aren't logged in, like the first X words. Spiders crawling the page will be able to read that text.