The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Ruby on rails sitemap.xml structure

    Ruby on rails sitemap.xml structure

    Intermediate & Advanced SEO
    2 2 445
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • brianvest
      brianvest last edited by

      Is their a recommended way/best practice to implement sitemap.xml files on a site built with ruby on rails?

      1 Reply Last reply Reply Quote 0
      • Mobilio
        Mobilio last edited by

        XML sitemap is well defined here:
        http://www.sitemaps.org/protocol.html

        But i can quickly resume:

        • limitation up to 50000 URLs and up to 50MB as file. If you need more you can split them as sitemap index with several sitemaps.
        • sitemap index are up to 50000 sitemaps and up to 10MB as file.
        • lastmod, priority and change frequency didn't play HUGE role anymore: https://www.seroundtable.com/google-lastmod-xml-sitemap-20579.html https://www.seroundtable.com/google-priority-change-frequency-xml-sitemap-20273.html but just keep them to be fully formatted.
        • sitemaps can be compressed (gzip)
        • sitemap must be UTF-8 encoded but beware of entities - Ampersand, Single Quote, Double Quote, Greater Than, Less Than. You must replace them with % char codes.
        • you can put sitemap location in robots.txt. You can place there also few sitemaps. Sitemaps can be located on 3rd party servers too.

        I think that this is most important in XML sitemaps.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • URL structure change and xml sitemap
          Daniel_Marks
          Daniel_Marks
          0
          3
          470

        • Xml sitemap Issue... Xml sitemap generator facilitating only few pages for indexing
          Paddy_Moogan
          Paddy_Moogan
          0
          6
          153

        • Sitemap.xml
          DarinPirkey
          DarinPirkey
          0
          2
          196

        • XML Sitemaps - how to create the perfect XML Sitemap
          AlanMosley
          AlanMosley
          0
          2
          3.5k

        • XML Sitemap index within a XML sitemaps index
          Martijn_Scheijbeler
          Martijn_Scheijbeler
          0
          2
          1.1k

        • How do I create a XML Sitemap?
          Johnny4B
          Johnny4B
          1
          7
          722

        • Are there any disadvantages of switching from xml sitemaps to .asp sitemaps in GWT
          robertrRSwalters
          robertrRSwalters
          0
          3
          947

        • Can a XML sitemap index point to other sitemaps indexes?
          KeriMorgret
          KeriMorgret
          0
          3
          1.9k

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy