简体   繁体   English

如何使跳转页面搜索引擎友好

[英]how to make jump page search engine friendly

I have links on page that scroll page to other parts of the page. 我在页面上具有将页面滚动到页面其他部分的链接。 Is there a way to make the page search engine friendly. 有没有一种方法可以使页面搜索引擎友好。

So lets say if my FAQ page has 2 questions and other content. 因此,可以说我的常见问题页面是否有2个问题和其他内容。 1) how to do A? 1)怎么办? and 2) how to do B? 和2)如何做B?

Someone searches for how to do B? 有人搜寻B吗? My site shows up with that question as search description's title and when user clicks it jumps to that part of the page. 我的网站显示该问题作为搜索描述的标题,当用户单击时,它跳到页面的该部分。

If you want parts of a page to have "different titles" then you have to make multiple pages with different URLs and titles in the meta information. 如果希望页面的某些部分具有“不同的标题”,则必须制作多个页面,这些页面在元信息中具有不同的URL和标题。 Also remember canonical references to the main page. 还请记住对主页的规范引用。

So you would have one page for the FAQ with the questions and answers. 因此,您将在常见问题页面上找到包含问题和答案的页面。

One page for question 1 with the question and answer. 问题1的一页,包含问题和答案。

Another page for question 2 with question and answer. 问题2的另一页带有问题和答案。

Stackoverflow is very good at this. Stackoverflow在这方面非常擅长。 Note the URL of this question for example. 例如,请注意此问题的URL。 It has the question in the URL of this page. 在此页面的URL中有问题。 This makes that question "search engine friendly". 这使该问题“对搜索引擎友好”。

I suggest you do the same. 我建议你这样做。

You can read on google's webmaster pages about how to set up cononical URLs. 您可以在Google网站站长页面上阅读有关如何设置圆锥形网址的信息。 Google (and other search engines) like when you do this. Google(和其他搜索引擎)就像您这样做时一样。

Jumping into different parts of a page are accomplished via anchor tags (#). 通过锚标记(#)可以跳转到页面的不同部分。 The problem you'll face is that search engines ignore anchor tags (#). 您将面临的问题是搜索引擎会忽略锚标记(#)。 If you don't want to create separate pages, you can: 如果您不想创建单独的页面,则可以:

  1. Create a single page with a table of contents at the top to jump users down into their relevant sections (the page title won't be affected but this does most of what you requested). 创建一个在顶部具有目录的页面,以将用户跳到其相关部分(页面标题不会受到影响,但这将满足您的大部分要求)。

  2. Create a single page with 2 different URLs. 用2个不同的URL创建一个页面。 This can be as easy as adding a query parameter on the end of your URL, eg: www.yourwebsite.com/yourcontent and www.yourwebsite.com/yourcontent?param=1. 这就像在URL末尾添加查询参数一样简单,例如:www.yourwebsite.com/yourcontent和www.yourwebsite.com/yourcontent?param=1。 If your page is created dynamically then you can (on the server side) update your page title and description based on the query parameter as well. 如果页面是动态创建的,则(在服务器端)您也可以基于查询参数更新页面标题和描述。

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

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