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. Technical SEO Issues
    4. Automate XML Sitemaps

    Automate XML Sitemaps

    Technical SEO Issues
    2 2 142
    • 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.
    • mattdinbrooklyn
      mattdinbrooklyn last edited by

      Quick question, which is the best method that people have for automating sitemaps. We publish around 200 times a day and I would like to make sure as soon as we publish it gets updated in the site map. What is the best method of updating a sitemap so it gets updated immediately after it is published.

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

        Hi there.

        Upon request to sitemap.xml run a let's say sitemap.php or .js or whatever, which would read the directory for new files, then update sitemap.xml. If you're using CMS - then it should have automatically generated sitemap by default. If not - the same idea, just instead of reading directory for rhysical files, read database.

        Cheers.

        1 Reply Last reply Reply Quote 3
        • 1 / 1
        • First post
          Last post
        • Desktop & Mobile XML Sitemap Submitted But Only Desktop Sitemap Indexed On Google Search Console
          bridget.randolph
          bridget.randolph
          0
          6
          1.6k

        • Sitemap.xml Site multilang
          GastonRiera
          GastonRiera
          0
          2
          270

        • Are mobile annotation in PC xml sitemaps a replacement for mobile xml sitemaps?
          bridget.randolph
          bridget.randolph
          0
          4
          377

        • Do I need an XML sitemap?
          pugh
          pugh
          0
          6
          9.2k

        • Xml Sitemap
          CustomMade
          CustomMade
          0
          6
          679

        • How to generate a visual sitemap using sitemap.xml
          Churchill1
          Churchill1
          0
          3
          8.4k

        • Ror.xml vs sitemap.xml
          vijayvasu
          vijayvasu
          0
          3
          2.9k

        • More than 1 XML Sitemap
          BradBorst
          BradBorst
          0
          4
          1.2k

        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