3

I want to make my website be able to show a tree structure of links when a user searches it through Google.

I've used sitemap to generate the structure:

# Set the host name for URL creation
SitemapGenerator::Sitemap.default_host = "https://lazyair.co"

SitemapGenerator::Sitemap.create do
  add '/about-us', :changefreq => 'weekly'
  add '/contact_us', :changefreq => 'weekly'
  add '/tutorial', :changefreq => 'weekly'
  add '/user', :changefreq => 'daily'
end

Expected format

Current format

unor
  • 92,415
  • 26
  • 211
  • 360
newBike
  • 14,385
  • 29
  • 109
  • 192

1 Answers1

1

There is no foolproof way to create Google Sitelinks, however you can structure your navigation to encourage them:

At the moment, sitelinks are automated. We're always working to improve our sitelinks algorithms, and we may incorporate webmaster input in the future. There are best practices you can follow, however, to improve the quality of your sitelinks. For example, for your site's internal links, make sure you use anchor text and alt text that's informative, compact, and avoids repetition.

And presumably you have to have enough traffic for the algorithm to evaluate the utility of the links.

Mori
  • 27,279
  • 10
  • 68
  • 73