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. Best Practices for adding Dynamic URL's to XML Sitemap

    Best Practices for adding Dynamic URL's to XML Sitemap

    Technical SEO Issues
    3 3 7.4k
    • 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.
    • seekjobs
      seekjobs last edited by

      Hi Guys,

      I'm working on an ecommerce website with all the product pages using dynamic URL's (we also have a few static pages but there is no issue with them).

      The products are updated on the site every couple of hours (because we sell out or the special offer expires) and as a result I keep seeing heaps of 404 errors in Google Webmaster tools and am trying to avoid this (if possible).

      I have already created an XML sitemap for the static pages and am now looking at incorporating the dynamic product pages but am not sure what is the best approach.

      The URL structure for the products are as follows:

      http://www.xyz.com/products/product1-is-really-cool
      http://www.xyz.com/products/product2-is-even-cooler
      http://www.xyz.com/products/product3-is-the-coolest

      Here are 2 approaches I was considering:

      1. To just include the dynamic product URLS within the same sitemap as the static URLs using just the following http://www.xyz.com/products/ - This is so spiders have access to the folder the products are in and I don't have to create an automated sitemap for all product

      OR

      2. Create a separate automated sitemap that updates when ever a product is updated and include the change frequency to be hourly - This is so spiders always have as close to be up to date sitemap when they crawl the sitemap

      I look forward to hearing your thoughts, opinions, suggestions and/or previous experiences with this.

      Thanks heaps,

      LW

      1 Reply Last reply Reply Quote 0
      • Mark.RedGiant
        Mark.RedGiant last edited by

        Hi LW,

        What system is backing the online store? Are you using a CMS-driven e-commerce solution?

        My suggestion would be to create an automated sitemap for the products. Pay careful attention to the priorities you assign and the update frequencies. (Hourly/daily is fine) I definitely think that you'd be spending far too much time on updating a sitemap if you had to do it manually.

        This method will result in you having a more accurate sitemap on crawling.

        Also, if you are planning on offering the same project in future, it might be an idea not to remove the product altogether, but rather have a page saying "This offer is currently not available" or something along those lines.

        Another option might be to have an archive category of products, where all your expired offers can be placed, not available for order. This could allow you to keep your indexed pages, avoid 404s as well as use the product pages to direct new visitors to related/newer products should they see the products in the archive.

        Just thinking out loud. 🙂

        I'd be interested to see the website and the solution that you do eventually implement.

        Regards
        Mark

        1 Reply Last reply Reply Quote 2
        • DeanAndrews
          DeanAndrews last edited by

          Hi LW

          I agree with Mark re archiving products. Although our products don't expire as quickly as yours appear to do I use http://www.xml-sitemaps.com/standalone-google-sitemap-generator.html on a cron job to keep our sitemap fresh.

          I also exclude some of our over dynamic URLs using this tool from appearing in the sitemap.

          Dean

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • If I'm using a compressed sitemap (sitemap.xml.gz) that's the URL that gets submitted to webmaster tools, correct?
            ThompsonPaul
            ThompsonPaul
            0
            6
            1.8k

          • New SEO manager needs help! Currently only about 15% of our live sitemap (~4 million url e-commerce site) is actually indexed in Google. What are best practices sitemaps for big sites with a lot of changing content?
            Nigel_Carr
            Nigel_Carr
            1
            4
            106

          • Strange URL's for client's site
            everestagency
            everestagency
            0
            3
            456

          • Sitemap issue? 404's & 500's are regenerating?
            jeff-rackaid.com
            jeff-rackaid.com
            0
            5
            263

          • Best practice for XML sitemap depth
            SanketPatel
            SanketPatel
            0
            3
            1.9k

          • Product landing page URL's for e-commerce sites - best practices?
            BenRWoodard
            BenRWoodard
            0
            2
            2.3k

          • Google indexing less url's then containded in my sitemap.xml
            Juist
            Juist
            0
            7
            3.4k

          • Duplicate pages, overly dynamic URL’s and long URL’s in Magento
            nageldecoratie
            nageldecoratie
            1
            6
            4.6k

          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