undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. Where to put a page ID in a URL?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Where to put a page ID in a URL?

Intermediate & Advanced SEO
3
5
3.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • komeksimas
    komeksimas last edited by Jan 17, 2013, 12:23 PM

    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
    • komeksimas
      komeksimas @ske11 last edited by Jan 18, 2013, 6:33 AM Jan 18, 2013, 6:33 AM

      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
      • komeksimas
        komeksimas @Highland last edited by Jan 31, 2013, 7:18 AM Jan 18, 2013, 6:21 AM

        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
        • Highland
          Highland last edited by Jan 17, 2013, 1:03 PM Jan 17, 2013, 1:03 PM

          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 Jan 18, 2013, 6:21 AM Reply Quote 0
          • ske11
            ske11 last edited by Jan 17, 2013, 12:55 PM Jan 17, 2013, 12:55 PM

            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 Jan 18, 2013, 6:33 AM Reply Quote 0
            • 1 / 1
            1 out of 5
            • First post
              1/5
              Last post

            Got a burning SEO question?

            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


            Start my free trial


            Browse Questions

            Explore more categories

            • Moz Tools

              Chat with the community about the Moz tools.

            • SEO Tactics

              Discuss the SEO process with fellow marketers

            • Community

              Discuss industry events, jobs, and news!

            • Digital Marketing

              Chat about tactics outside of SEO

            • Research & Trends

              Dive into research and trends in the search industry.

            • Support

              Connect on product support and feature requests.

            • See all categories

            Related Questions

            • Ashcastle

              URL structure - Page Path vs No Page Path

              We are currently re building our URL structure for eccomerce websites. We have seen a lot of site removing the page path on product pages e.g. https://www.theiconic.co.nz/liberty-beach-blossom-shirt-680193.html versus what would normally be https://www.theiconic.co.nz/womens-clothing-tops/liberty-beach-blossom-shirt-680193.html Should we be removing the site page path for a product page to keep the url shorter or should we keep it? I can see that we would loose the hierarchy juice to a product page but not sure what is the right thing to do.

              Intermediate & Advanced SEO | Aug 11, 2018, 11:15 AM | Ashcastle
              0
            • CarolynSC

              Does google ignore ? in url?

              Hi Guys, Have a site which ends ?v=6cc98ba2045f for all its URLs. Example: https://domain.com/products/cashmere/robes/?v=6cc98ba2045f Just wondering does Google ignore what is after the ?. Also any ideas what that is? Cheers.

              Intermediate & Advanced SEO | Jun 23, 2017, 2:30 AM | CarolynSC
              0
            • vtmoz

              Redirecting homepage to internal page (2nd Tier page)

              We are planning to experiment redirecting our homepage to one of the 2nd tier page. I mean....example.com to example.com/page. We need this page to rank well, but it doesn't have much internal links or external back-links, so we opt for this redirect. Advantage with this page is, it has "keyword" we want to rank for in URL. "page" in example.com/page. Will this help or hurt us in SEO? I think we are missing keyword in our root domain, so interested to highlight this page. Thanks, Satish

              Intermediate & Advanced SEO | Nov 2, 2016, 9:27 AM | vtmoz
              0
            • BeckyKey

              Too many on page links

              Hi I know previously it was recommended to stick to under 100 links on the page, but I've run a crawl and mine are over this now with 130+ How important is this now? I've read a few articles to say it's not as crucial as before. Thanks!

              Intermediate & Advanced SEO | Jul 20, 2016, 10:09 AM | BeckyKey
              1
            • peteboyd

              URL Injection Hack - What to do with spammy URLs that keep appearing in Google's index?

              A website was hacked (URL injection) but the malicious code has been cleaned up and removed from all pages. However, whenever we run a site:domain.com in Google, we keep finding more spammy URLs from the hack. They all lead to a 404 error page since the hack was cleaned up in the code. We have been using the Google WMT Remove URLs tool to have these spammy URLs removed from Google's index but new URLs keep appearing every day. We looked at the cache dates on these URLs and they are vary in dates but none are recent and most are from a month ago when the initial hack occurred. My question is...should we continue to check the index every day and keep submitting these URLs to be removed manually? Or since they all lead to a 404 page will Google eventually remove these spammy URLs from the index automatically? Thanks in advance Moz community for your feedback.

              Intermediate & Advanced SEO | Jun 28, 2015, 1:03 AM | peteboyd
              0
            • jagdecat

              I have a lot of spammy links coming to my 404 page (the URLs have been removed now). Should i re-direct to Home?

              I have a lot of spammy links pointing at my website according to MOZ. Thankfully all of them were for some URLs that we've long since removed so they're hitting my 404. Should i change the 404 with a 301 and Re-Direct that Juice to my home page or some other page or will that hurt my ranking?

              Intermediate & Advanced SEO | May 25, 2015, 12:00 AM | jagdecat
              0
            • JohnPeters

              Strange URLs, how do I fix this?

              I've just check Majestic and have seen around 50 links coming from one of my other sites. The links all look like this: http://www.dwww.mysite.com
              http://www.eee.mysite.com
              http://www.w.mysite.com The site these links are coming from is a html site. Any ideas whats going on or a way to get rid of these urls? When I visit the strange URLs such as http://www.dwww.mysite.com, it shows the home page of http://www.mysite.com. Is there a way to redirect anything like this back to the home page?

              Intermediate & Advanced SEO | Apr 11, 2013, 2:51 AM | JohnPeters
              0
            • IHSwebsite

              Robots.txt: Can you put a /* wildcard in the middle of a URL?

              We have noticed that Google is indexing the language/country directory versions of directories we have disallowed in our robots.txt. For example: Disallow: /images/ is blocked just fine However, once you add our /en/uk/ directory in front of it, there are dozens of pages indexed. The question is: Can I put a wildcard in the middle of the string, ex. /en/*/images/, or do I need to list out every single country for every language in the robots file. Anyone know of any workarounds?

              Intermediate & Advanced SEO | Sep 26, 2012, 1:10 PM | IHSwebsite
              0

            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
            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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy

            Looks like your connection to Moz was lost, please wait while we try to reconnect.