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. Product Category Subcategory hierarchy

    Product Category Subcategory hierarchy

    Intermediate & Advanced SEO
    2 2 1.6k
    • 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.
    • MangoMM
      MangoMM last edited by

      Hi all,

      I am developing an ecommerce store and would like some advice on the Category / Product URL structure for SEO purposes.

      • Products have many options
      • Products belong to a sub-category.
      • Sub categories belong to a category

      There will be a maximum of 500 products in the database.

      1. http://shop.com/{category}/{product_slug}?{product_option} Flattened with query string option

      • http://shop.com/apple/iphone-5s?model=32gb&colour=white

      2. http://shop.com/{category}/{subcategory}/{product_slug}?{product_option} // Hierarchical with query string option

      3. http://shop.com/{category}/{product_slug}/{product_option}

      4. http://shop.com/{category}/{subcategory}/{product_slug}/{product_option}

      5. http://shop.com/{category}/{product-slug}

      • http://shop.com/apple/iphone-5s-32gb-black

      Option 5 seems best to me, however I am also worried about duplicate content between pages.

      • http://shop.com/apple/iphone-5s-32gb-black
      • http://shop.com/apple/iphone-5s-64gb-black
      • http://shop.com/apple/iphone-5s-64gb-white

      The above 3 examples will all have very similar content. And if I use canonical url tag, which product page would I refer these pages to?

      At least with Option 1 I can use the canonical tag to tell search engines that pages with get parameters can point to the non get parameter version.

      In addition to Option 5, should I create a http://shop.com/{category}/{subcategory} page? That way Option 5 item canonical tags can point to that page. e.g. http://shop.com/apple/iphone-5s which would contain product summary detail with product options listed on the page?

      Am I missing something here or can anybody provide a better solution?

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

        I typically keep category names out of the product URL. It creates problems, especially when the product lives in multiple categories. You can use a rel canonical tag, but I'd rather just not have to deal with it. Here is how I do it:

        www.domain.com/products/product-name/

        www.domain.com/category/category-name/ and
        www.domain.com/category/category-name/sub-category-name/

        This convention has several advantages, including easy segmentation of the site to determine, for instance, how many product pages are indexed in the SERPs.

        One could argue that having the category name in the product URL is good for SEO because of the keywords, but I would argue that putting the product farther down in the site structure, and the non-canonical URL issues related to certain taxonomies (e.g. multiple categories for a product) negates what little benefit keywords in the URL have these days.

        Of course not all eCommerce platforms really allow the structure above. Magento, for example, will allow you to put products in the root, but not in the /product/ folder. The product will also be viewable on the category-version of the URLs, but they will have a rel canonical tag pointing to the root directory version.

        Good luck.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Ecommerce: A product in multiple categories with a canonical to create a ‘cluster’ in one primary category Vs. a single listing at root level with dynamic breadcrumb.
          ChadC
          ChadC
          0
          2
          790

        • Multiple product hierarchies (creation of refurbished products section) - best solution?
          EricaMcGillivray
          EricaMcGillivray
          0
          2
          107

        • Working to Start an Shopping Idea Site - Which Totally Based On Scraping product from Ecom. How Quickly I should Add products and categories in this new domain.
          innovatebizz
          innovatebizz
          0
          9
          136

        • Online Store With 4 Products Available in 50 Sizes, Need Tips Categories/Products
          BigBlaze205
          BigBlaze205
          0
          3
          418

        • Category Pages up - Product Pages down... what would help?
          RyanKent
          RyanKent
          0
          4
          324

        • How to properly link to products from category pages?
          BeytzNet
          BeytzNet
          0
          16
          920

        • Magento: URLs for Products in Multiple Categories
          DWJames
          DWJames
          0
          2
          10.2k

        • Why does google not show my ecommerce category page when I have the same keywords for many products in the product title?
          funktiongolf
          funktiongolf
          0
          5
          721

        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