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. Where to put a page ID in a URL?

    Where to put a page ID in a URL?

    Intermediate & Advanced SEO
    5 3 2.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.
    • komeksimas
      komeksimas last edited by

      Hello,

      My company is going to change URLs to example.com/category or example.com/product.

      When we will change the URLs to product or category pages somehow we have to check whether the requested page is from category table in DB or from products table (this gives much speed to page load time).

      So we have to choose how to make the different product and category pages.
      Programmers said that we need to insert id to URL.

      So the question is: Which is the better way to place an id to an URL?

      example.com/product-name?id=111

      example.com/product-name/111

      example.com/product_name-111

      Or maybe we should use some other punctuation mark to separate id from product name?

      p.s. I have read Dynamic URLs vs. static URLs by Google and it still didn't answered which is the best for all of the pages.

      Somehow others solve this problem by typing only the names to the URL, but could anyone tell what that technology should be?

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

        I would use example.com/product_name-111

        I believe you need to do a mod re-write to get the URL to display the way you want it, but others will be better placed to advice you on this than I am.

        komeksimas 1 Reply Last reply Reply Quote 0
        • Highland
          Highland last edited by

          I would select a modified option #3 (modified in that I used all dashes)

          example.com/product-name-111

          I've seen this work. VBSEO (a vBulletin forum plugin that rewrites URLs) uses this format, where the ID is at the end of the URL. I've not seen any ill effects and this plugin has used this format for years.

          Don't get too hung up on the URL structure. It's like worrying about what color to paint your walls when your house has structural issues. URLs are window dressing. They help SEO, but only slightly.

          komeksimas 1 Reply Last reply Reply Quote 0
          • komeksimas
            komeksimas @Highland last edited by

            Just trying to get the best out of everything 🙂

            In this case, doesn't product-name-111 is all keywords for a page? My product if my product page doesn't consist of 111 it would make a mess for Google.

            I can give one example that could messes up:
            example.com/cars-1963

            And 1963 isn't a year nor it's a model number of a car, it's the ID of a catalog.

            1 Reply Last reply Reply Quote 0
            • komeksimas
              komeksimas @ske11 last edited by

              As I have seen somewhere that underscore "_" unites the names and Google looks at it like one word with no spaces.

              Wouldn't it be bad for long product names?

              example.com/2010_chrysler_grand_voyager_2l would be the same as write example.com/2010chryslergrandvoyager2l ?

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • URL structure - Page Path vs No Page Path
                Roman-Delcarmen
                Roman-Delcarmen
                0
                5
                277

              • Pages with URL Too Long
                Martijn_Scheijbeler
                Martijn_Scheijbeler
                0
                2
                1.8k

              • Putting "noindex" on a page that's in an iframe... what will that mean for the parent page?
                Philip-DiPatrizio
                Philip-DiPatrizio
                0
                3
                1.5k

              • More Indexed Pages than URLs on site.
                LynnPatchett
                LynnPatchett
                0
                6
                358

              • Google is displaying my pages path instead of URLS (Pages name)
                ali881
                ali881
                0
                3
                428

              • Can use of the id attribute to anchor t text down a page cause page duplication issues?
                Chammy
                Chammy
                0
                4
                240

              • Indexed non existent pages, problem appeared after we 301d the url/index to the url.
                ThompsonPaul
                ThompsonPaul
                0
                4
                331

              • Dynamic URLs Appearing on Google Page 1\. Convert to Static URLs or not?
                mindflash
                mindflash
                0
                4
                578

              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