问题原文
原帖链接 · 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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
