All threads / How do you handle the Sitemap for a user generated content website like a social media network?
Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do you handle the Sitemap for a user generated content website like a social media network?

Kshitij Choudhary asked in Rails

I want Google to index my dynamic sitemap that gets updated every time a user creates a record

Homepage — http://looksideway.com/
Project example — https://looksideway.com/projects/122-studiotime-website
Basically I want the Sitemap to include all projects links - https://looksideway.com/projects/* (except edit routes)

As long as the page is linked somewhere, Google will usually find and index it automatically, so you may not need to do this as

You could probably use the sitemap_generator gem to create sitemaps and point Google to it. https://github.com/kjvarga/sitemap_generator

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 68,099+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.