简体   繁体   English

如何在搜索引擎中隐藏Laravel分页

[英]How to hide Laravel paginate in search engines

How can I hide pages render in search engines . 如何隐藏在搜索引擎中呈现的页面。 and google just Identified for example blog, Not blog?page=5. 和google只是标识了一个博客,例如Not Blog?page = 5。

Can i do this with Canonical URL? 我可以使用规范网址吗?

在此处输入图片说明

Google's documentation says you should not worry about this, this is how they index your page. Google的文档说,您不必为此担心,这是他们为您的页面编制索引的方式。 Best you can do is to provide rel="prev" and next` links: 最好的办法是提供rel =“ prev” and next`链接:

If you paginate content on your site, and you want that content to appear in search results, we recommend one of the following three options. 如果您对网站上的内容进行分页,并且希望该内容显示在搜索结果中,则建议使用以下三个选项之一。

  • Do nothing. 没做什么。 Paginated content is very common, and Google does a good job returning the most relevant results to users, regardless of whether content is divided into multiple pages. 分页内容非常普遍,无论内容是否分为多个页面,Google都能很好地将最相关的结果返回给用户。
  • Specify a View All page. 指定“查看全部”页面。 Searchers commonly prefer to view a whole article or category on a single page. 搜索者通常更喜欢在单个页面上查看整个文章或类别。 Therefore, if we think this is what the searcher is looking for, we try to show the View All page in search results. 因此,如果我们认为这是搜索者正在寻找的东西,那么我们将尝试在搜索结果中显示“查看全部”页面。 You can also add a rel="canonical" link to the component pages to tell Google that the View All version is the version you want to appear in search results. 您还可以在组件页面上添加一个rel =“ canonical”链接,以告知Google查看所有版本是您要在搜索结果中显示的版本。
  • Use rel="next" and rel="prev" links to indicate the relationship between component URLs. 使用rel =“ next”和rel =“ prev”链接来指示组件URL之间的关系。 This markup provides a strong hint to Google that you would like us to treat these pages as a logical sequence, thus consolidating their linking properties and usually sending searchers to the first page. 此标记向Google强烈暗示您希望我们将这些页面视为逻辑顺序,从而巩固它们的链接属性,并通常将搜索者发送到第一页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM