大网数据广告活动
网站运营与故障问答

Can I get Google Sitelinks for a single page site that uses # fragment identifier URLs to scroll to the various sections?

· 52CE 我爱测

I have a website up and running which is single-page. I do need site links to appear on google search. Currently, it is placed at top in google search but without site links. I have submitted sitemaps with https://example.com/ser…

问题原文

原帖链接 · Code With Me · CC BY-SA 4.0

I have a website up and running which is single-page. I do need site links to appear on google search. Currently, it is placed at top in google search but without site links. I have submitted sitemaps with https://example.com/services, https://example.com/projects etc which is then redirected at the application level to https://example.com/#services (status code 301) and so on. Google Search Console shows Page with redirection for some pages whereas Duplicate, submitted URL not selected as canonical for others.

What can I do to get the site links shows in the google search?

已采纳解答

原帖链接 · Shahzeb Qureshi · CC BY-SA 4.0

It is highly unlikely that Google will consider the within page links indicated with a # as unique pages. Sites like Github have heavy usage of hash links that help with navigation within the page but these links are not indexed by google.

The sitelinks guide by Google clearly says

We only show sitelinks for results when we think they'll be useful to the user. If the structure of your site doesn't allow our algorithms to find good sitelinks, or we don't think that the sitelinks for your site are relevant for the user's query, we won't show them. Read full article Sitelinks

It will be a good practice to make seperate pages of your # links with unique content in them

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-05-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。